Commit Graph

16 Commits

Author SHA1 Message Date
Fabio Erculiani 831237b7fc [entropy.server] insert the package SHA1 checksum into the file name
This commit partially reverts commit d6b7a21314.
Package revision is no longer incremented across package moves.
This has two advantages:
  - much less traffic generated on the mirror infrastructure
  - less updates for sabayon-limbo users when packages are moved to main

Bumping the revision was required by sabayon-weekly, which had the problem
that some package files were replaced during normal activity on
sabayonlinux.org and sabayon-limbo on the mirror. This generated checksum
errors, thus adding the checksum in the package file name ensures that
Entropy Server will never overwrite package file names unless the checksum
also matches.
Having a SHA1 checksum in the file name is also good for security, and
we may even want to create a SHA1 from the GPG signature in future.
2013-03-20 15:21:31 +00:00
Fabio Erculiani 022375fd7d [services] ignore ENOENT errors in entropy-pkgdelta-generator 2012-10-22 19:50:43 +02:00
Fabio Erculiani 2a6ceaae35 [services] entropy-pkgdelta-generator: do not generate .edelta for files smaller than 1Mb 2012-09-19 22:13:30 +02:00
Fabio Erculiani e2a075cd33 [services] entropy-pkgdelta-generator: wrap md5sum() around IOError try/except 2012-09-16 07:42:10 +02:00
Fabio Erculiani 796e71e9ac [repo] migrate shebangs to /usr/bin/python 2012-08-18 16:53:32 +02:00
Fabio Erculiani 11f1eee75a [services] entropy-pkgdelta-generator: write to stdout 2011-11-26 18:11:46 +01:00
Fabio Erculiani 69a0bb87e0 [entropy] move libraries/ to lib/ 2011-10-17 14:27:58 +02:00
Fabio Erculiani b4379c6219 [entropy.tools] provide general purpose NB EX file locking/unlocking functions 2011-02-26 12:53:46 +01:00
Fabio Erculiani 55d995e010 [services] entropy-pkgdelta-generator: create deltas only for files smaller than 10Mb (bsdiff mem usage: max(17*n,9*n+m)+O(1) ) 2010-12-16 16:22:01 +01:00
Fabio Erculiani ab1e111502 [services] entropy-pkgdelta-generator: add --lock support
Add --lock <lock_file_path> switch in order to make possible to
control the execution of the tool and avoid to have multiple instances
running.
2010-12-12 10:12:02 +01:00
Fabio Erculiani a4122850c4 [entropy.tools] update API of generate_entropy_delta() and generate_entropy_delta_file_name(), improve reliability of fetching the right file. 2010-12-11 23:01:00 +01:00
Fabio Erculiani 5697c2ee3c [services/entropy-pkgdelta-generator] add --quiet support 2010-12-08 15:55:06 +01:00
Fabio Erculiani 74e7a5102e [services/entropy-pkgdelta-generator] skip invalid package file names silently 2010-12-07 21:05:36 +01:00
Fabio Erculiani 6cefc18268 [services/entropy-pkgdelta-generator] use etpConst .md5 extension constant and remove stale .md5 files too on cleanup 2010-12-07 20:57:49 +01:00
Fabio Erculiani f78e69056e [services/entropy-pkgdelta-generator] also generate .md5 file 2010-12-07 20:54:59 +01:00
Fabio Erculiani 33e36a30d9 [services] add entropy package deltas generator tool 2010-12-07 20:14:16 +01:00