Fabio Erculiani
335c11db96
[entropy.server] drop warning when running as user, no need to have it in lib
2011-10-17 11:26:40 +02:00
Fabio Erculiani
f9947a372f
[entropy.client.interfaces.package] export pkgpath metadatum only for package fetch (not sources fetch)
2011-10-07 21:39:14 +02:00
Fabio Erculiani
dc8043f74e
[entropy.db] EntropyRepository.readonly(): if uid == 0, override os.access() check
2011-10-06 19:27:35 +02:00
Fabio Erculiani
3044690fa5
[entropy.server] open_server_repository(): always check effective rw status when needed
...
Check if the repository is actually accessibile in write mode before
calling package_names_update()
2011-10-06 17:50:54 +02:00
Fabio Erculiani
2a3d3788e1
[entropy.db] EntropyRepositoryBase: update readonly() docstring
2011-10-06 17:49:43 +02:00
Fabio Erculiani
f5f77bcebc
[entropy.db] EntropyRepository: reimplement readonly(), if False, also check actual file permissions
2011-10-06 17:44:50 +02:00
Fabio Erculiani
d8cf907287
[entropy.client.interfaces.dep] update get_install_queue() public API
2011-10-05 22:51:12 +02:00
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
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
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
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
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
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
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
81c34ef18d
Release Entropy 1.0_rc56
2011-09-25 12:27:23 +02:00
Fabio Erculiani
ff6263f86f
[entropy.server.interfaces] trivial code update
2011-09-25 10:44:15 +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
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
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
606e5775be
[tests] tools: make sure that function returns non-None values
2011-09-20 12:18:05 +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
Fabio Erculiani
2de803f314
[tests] db: always use maskFilter=False with atomMatch()
2011-09-18 22:48:44 +02:00
Fabio Erculiani
0feacbf90d
[tests] db: do not fail on atomMatch() due to different arch (fixes tests on ARM)
2011-09-18 22:42:47 +02:00
Fabio Erculiani
a089127bd5
[entropy.spm] PortagePlugin: get_package_sets(), fix typo
2011-09-18 22:18:49 +02:00
Fabio Erculiani
baf46a8e6d
[entropy.spm] PortagePlugin: fix get_package_sets() with Python 2.1
2011-09-18 22:17:05 +02:00
Fabio Erculiani
9f06b4acac
Release Entropy 1.0_rc53
2011-09-18 12:27:40 +02:00
Fabio Erculiani
097c6dd6ca
[entropy.tools] grow _locate_edb() give up threshold from 30Mb to 60, due to app-doc/php-docs edb size
2011-09-18 12:25:58 +02:00