Commit Graph

8226 Commits

Author SHA1 Message Date
Fabio Erculiani
cd8d70728d [entropy] simplify entropy locks management code, drop non-atomic functions 2011-10-05 10:44:42 +02:00
Fabio Erculiani
1df7743540 [entropy.spm] PortagePlugin: add_installed_package, always bump mtime of pkg_dir if available 2011-10-04 23:33:26 +02:00
Fabio Erculiani
b999bb37d6 [entropy.const] make const_unsetup_entropy_pid() and const_setup_entropy_pid() work in child processes 2011-10-04 23:14:18 +02:00
Fabio Erculiani
a196704102 [entropy.client.interfaces.methods] always use flock to handle lock file status
Make _check_pid_file_lock() use flock with LOCK_NB | LOCK_EX and LOCK_UN
to determine if the passed pid file is locked, and contains a different
pid value.
At the same time, unlock_resources() now removes the pid file before
releasing the lock associated with it. This makes possible to avoid
waiting 5 seconds when polling the same pid file to determine if it's
locked or not.
2011-10-04 22:41:20 +02:00
Fabio Erculiani
9725e74266 [entropy.const] rewrite const_setup_entropy_pid() to not use pid information
Use a full blown lock file instead of a random file serially accessed
and containing unreliable pid information. Of course, pids can be
reused across fork()s, even if this is unlikely (but not impossible).
2011-10-04 22:37:22 +02:00
Fabio Erculiani
e7b70c8f7b [sulfur] try to acquire Entropy locks for at most 5 seconds before giving up 2011-10-04 20:44:43 +02:00
Fabio Erculiani
b131650974 [entropy.tools] acquire_entropy_locks, acquire_entropy_resources_lock: add keyword arg max_tries 2011-10-04 20:44:16 +02:00
Fabio Erculiani
b2f685e591 [po] update German translation, thanks to Tobias Rosenberger 2011-10-04 16:14:03 +02:00
Fabio Erculiani
745b215a10 [entropy.services.client] catch IOError when raised by EntropyCacher.save() (disk full or whatever) 2011-09-30 14:42:13 +02:00
Fabio Erculiani
3f92f4537d Tagging Entropy version 1.0_rc59 1.0_rc59 2011-09-28 23:19:47 +02:00
Fabio Erculiani
a88e1782a1 Release Entropy 1.0_rc59 2011-09-28 23:19:43 +02:00
Fabio Erculiani
79b14edb00 [entropy.client.interfaces.package] fix undefined reference 2011-09-28 23:19:13 +02:00
Fabio Erculiani
8a526f6c2d Tagging Entropy version 1.0_rc58 1.0_rc58 2011-09-28 14:08:08 +02:00
Fabio Erculiani
e96f101bfa Release Entropy 1.0_rc58 2011-09-28 14:08:05 +02:00
Fabio Erculiani
44d70d9aca [entropy.client.interfaces] fix const_convert_to_rawstring() usage 2011-09-28 14:04:32 +02:00
Fabio Erculiani
80fd04d1ba Tagging Entropy version 1.0_rc57 1.0_rc57 2011-09-28 11:53:00 +02:00
Fabio Erculiani
c12e1d3655 Release Entropy 1.0_rc57 2011-09-28 11:52:46 +02:00
Fabio Erculiani
8a509e0ec7 [entropy.client.interfaces.package] always use const_convert_* for unicode<->rawstring conversion 2011-09-28 11:42:58 +02:00
Fabio Erculiani
30dd811820 [entropy.client.interfaces.package] _unpack_step: use raw string types if Python 2.x 2011-09-28 11:36:16 +02:00
Fabio Erculiani
995e696577 [entropy.client.interfaces.package] properly handle automerge data in unicode 2011-09-28 10:58:47 +02:00
Fabio Erculiani
2b82f1936e [entropy.client.interfaces.package] always pass unicode data to insertAutomergefile() 2011-09-28 10:49:54 +02:00
Fabio Erculiani
d5b52b292b [entropy.client.interfaces.package] tweak error output, print live filesystem path 2011-09-28 10:49:11 +02:00
Fabio Erculiani
4b50c5c4c2 [entropy.db.skel] insertContent, insertAutomergefiles: explicitly require unicode data 2011-09-28 10:48:33 +02:00
Fabio Erculiani
480467505f [po] update translations 2011-09-27 20:41:48 +02:00
Fabio Erculiani
c029f93da9 [entropy.client] correct wording, replace "throttling" with "sleeping" 2011-09-27 20:41:05 +02:00
Fabio Erculiani
984f2ddd96 [entropy.tools] _locate_edb: raise threshold to 90mb for safety 2011-09-27 20:40:03 +02:00
Fabio Erculiani
e755e8ec39 Tagging Entropy version 1.0_rc56 1.0_rc56 2011-09-25 12:27:44 +02:00
Fabio Erculiani
81c34ef18d Release Entropy 1.0_rc56 2011-09-25 12:27:23 +02:00
Fabio Erculiani
f0ade6f50e [matter] rework ve_string_open_file_read parser method to return file path instead of handle 2011-09-25 11:02:13 +02:00
Fabio Erculiani
ff6263f86f [entropy.server.interfaces] trivial code update 2011-09-25 10:44:15 +02:00
Fabio Erculiani
c0868cf6e2 [matter] fix usage of buildfail, pkgpre and pkgpost file data 2011-09-25 10:40:43 +02:00
Fabio Erculiani
0297cdd83e [entropy.qa] improve atomicity of __analyze_package_edb 2011-09-25 08:53:26 +02:00
Fabio Erculiani
7d5ac06879 [entropy.spm] PortagePlugin: do not use /tmp as temporary dir but rather /var/tmp/entropy 2011-09-25 08:53:00 +02:00
Fabio Erculiani
89d7b29290 Tagging Entropy version 1.0_rc55 1.0_rc55 2011-09-22 17:00:50 +02:00
Fabio Erculiani
40afb5484d Release Entropy 1.0_rc55 2011-09-22 17:00:36 +02:00
Fabio Erculiani
15e47853bb [entropy.client.interfaces] export "pkgpath" metadatum for PackageKit consumption (was removed), close bug 2720 2011-09-22 16:58:01 +02:00
Fabio Erculiani
a49e5ef4b9 [entropy.client.interfaces.dep] when determining if a package is part of the system set, also verify inverse deps
This fixes the detection of sys-libs/glibc as system package.
Actually, virtual/libc is marked as system but not sys-libs/glibc
directly.
2011-09-22 16:47:32 +02:00
Fabio Erculiani
9d05d6ce40 Tagging Entropy version 1.0_rc54 1.0_rc54 2011-09-21 19:30:37 +02:00
Fabio Erculiani
0f4fe41de6 Release Entropy 1.0_rc54 2011-09-21 19:30:22 +02:00
Fabio Erculiani
6a38926bd9 [entropy.qa] filter out system packages from runtime missing dependencies list, also consider direct reverse deps to catch virtual pkgs 2011-09-21 19:27:38 +02:00
Fabio Erculiani
fa69baa326 [entropy.client.interfaces.dep] get_reverse_queue: default recursive to True (False was actually a mistake) 2011-09-20 22:29:12 +02:00
Fabio Erculiani
758f65e7b8 [entropy.qa] use entropy_client.validate_package_removal() instead of direct db method isSystemPackage()
This fixes the issue with sys-libs/glibc not being an actual system
package due to virtual/libc wrapping it
2011-09-20 22:20:07 +02:00
Fabio Erculiani
02ee95ffa1 [todo] update TODO 2011-09-20 12:44:47 +02:00
Fabio Erculiani
606e5775be [tests] tools: make sure that function returns non-None values 2011-09-20 12:18:05 +02:00
Fabio Erculiani
c10cda3cc8 [todo] update TODO 2011-09-20 12:17:45 +02:00
Fabio Erculiani
bf15bd4baa [entropy.server] better deal with unavailable server.conf, make sure all the metadata is prepared anyway 2011-09-18 23:14:10 +02:00
Fabio Erculiani
895d6d7c96 [tests] db: move etpConst['keywords'] setup at the end of setUp method 2011-09-18 23:05:05 +02:00
Fabio Erculiani
bd81b92c6c [tests] db: make package files generated on amd64 work on other arches as well 2011-09-18 22:57:41 +02:00
Fabio Erculiani
15d922ff57 Revert "[tests] db: do not fail on atomMatch() due to different arch (fixes tests on ARM)"
This reverts commit 0feacbf90d.
2011-09-18 22:54:45 +02:00
Fabio Erculiani
6f48c86ab2 Revert "[tests] db: always use maskFilter=False with atomMatch()"
This reverts commit 2de803f314.
2011-09-18 22:54:29 +02:00