Commit Graph

1036 Commits

Author SHA1 Message Date
Fabio Erculiani
d10d82bebb Release Entropy 238 2013-11-29 19:43:21 +01:00
Fabio Erculiani
a01f0bd103 [tests] mute QA and Security test function outputs 2013-11-29 19:41:08 +01:00
Fabio Erculiani
982d99fe30 [tests] client: silence tests 2013-11-29 19:37:24 +01:00
Fabio Erculiani
464ae46d90 [tests] drop debug output 2013-11-29 19:29:12 +01:00
Fabio Erculiani
e6d0a556b7 [entropy.spm] PortagePlugin.__source_env_get_var: silence stderr 2013-11-29 19:21:17 +01:00
Fabio Erculiani
e406a4edaa [entropy.*] create new dependencies metadata "pkg_dependencies"
The old "dependencies" metadata is deprecated. It was found that
the generated metadata might get corrupted by colliding atom strings.
The new implementation avoids collisions completely and is more
efficient.
2013-11-29 19:15:44 +01:00
Fabio Erculiani
48794603d0 [entropy.spm] PortagePlugin: make sure that /usr/lib/portage/pym is in sys.path 2013-11-29 17:38:27 +01:00
Fabio Erculiani
79885e0e0f [entropy.client.interfaces.dep] restore python3 compatibility 2013-11-29 17:38:09 +01:00
Fabio Erculiani
d28fd6050f Release Entropy 237 2013-11-29 16:42:30 +01:00
Fabio Erculiani
57d22348ea [entropy.qa] _get_unresolved_sonames: try to resolve the lib using its real path 2013-11-29 16:41:21 +01:00
Fabio Erculiani
2b082167cd [entropy.tools] read_elf_real_dynamic_libraries: correctly filter out elf_file 2013-11-29 16:30:23 +01:00
Fabio Erculiani
32e48aa576 [entropy.qa] rewrite _get_unresolved_sonames: reduce false positives
Use the provided libraries metadata instead of the content metadata,
which may be really large and error prone. Improve speed and memory
usage as well.
2013-11-29 16:24:25 +01:00
Fabio Erculiani
53ef2c06bd [entropy.qa] _get_unresolved_sonames: filter symlinks from elf_files 2013-11-29 15:54:05 +01:00
Fabio Erculiani
aab2449b2b [entropy.qa] _is_elf_executable_or_library: add allow_symlink keyword arg 2013-11-29 15:50:49 +01:00
Fabio Erculiani
ed6e58551d [entropy.qa] move ELF file checks to separate unified function, add debug dir check 2013-11-29 15:40:52 +01:00
Fabio Erculiani
734fe7a0f9 [entropy.client.interfaces.sets] fix undefined variable: err 2013-11-29 13:10:10 +01:00
Fabio Erculiani
46cbde0a87 Release Entropy 236 2013-11-29 13:09:01 +01:00
Fabio Erculiani
b7292eadf1 [entropy.fetchers] do not print "Infinity" but rather warn about the accuracy 2013-11-29 13:08:28 +01:00
Fabio Erculiani
a5910790a6 [entropy.fetchers] clean code a bit 2013-11-29 13:08:07 +01:00
Fabio Erculiani
6f8164dd14 [entropy.client.package] fix regression in .edelta files download support 2013-11-29 12:55:26 +01:00
Fabio Erculiani
b21654e705 Release Entropy 235 2013-11-28 20:19:05 +01:00
Fabio Erculiani
56bc937e47 [tests] cleanup run 2013-11-28 19:55:00 +01:00
Fabio Erculiani
3f046e6c07 [entropy.client.package] _garbage_collect_preserved_libs: remove library iff there are no owners 2013-11-27 18:18:33 +01:00
Fabio Erculiani
dfb6fadf99 [entropy.client.package] PreservedLibraries: fix insertPreservedLibraries() call 2013-11-27 17:38:57 +01:00
Fabio Erculiani
2b3b2d0f27 [entropy.client.package] PreservedLibraries: tweak API 2013-11-27 17:29:52 +01:00
Fabio Erculiani
67443f1645 [entropy.client.package] PreservedLibraries: accept any provider as valid 2013-11-27 16:46:14 +01:00
Fabio Erculiani
97f2e47438 [entropy.client.package] simplify PreservedLibraries.remove() 2013-11-27 12:37:05 +01:00
Fabio Erculiani
e7c482ac21 [entropy.db] add atom field to preserved_libs metadata 2013-11-27 12:30:09 +01:00
Fabio Erculiani
334172f8f9 [entropy.client.package] expose a list() method, wrap listAllPreservedLibraries() 2013-11-27 12:18:07 +01:00
Fabio Erculiani
87d375e9ec [entropy.client.package] force self._root to unicode 2013-11-27 12:17:45 +01:00
Fabio Erculiani
fa97583cac [entropy.client.package] initial preserved libraries support 2013-11-27 11:25:47 +01:00
Fabio Erculiani
5efdb31903 [entropy.client.package] correctly handle symlinks to hardlinks, see Gentoo bug #406837 2013-11-27 11:22:31 +01:00
Fabio Erculiani
81cf0befe4 [entropy.client.package] extend the preservedlibs module with more methods 2013-11-27 10:31:23 +01:00
Fabio Erculiani
3c8f5ae812 [entropy.client.package] remove useless del calls 2013-11-26 22:32:56 +01:00
Fabio Erculiani
68f3db82d6 [entropy.client.package] add metadata parameter to _get_system_root() 2013-11-26 22:31:08 +01:00
Fabio Erculiani
0a948b8784 [entropy.client.package] move self._meta to _PackageInstallRemoveAction 2013-11-26 22:26:32 +01:00
Fabio Erculiani
548d579d2f [entropy.client.package] add initial preserved libraries support class 2013-11-26 20:53:00 +01:00
Fabio Erculiani
86cdf058a3 [entropy.tools] move struct import to global scope 2013-11-26 11:18:34 +01:00
Fabio Erculiani
ff461f4676 [entropy.client.package] add _PackageFetchAction.package_path() for PackageKit 2013-11-23 20:24:22 +01:00
Fabio Erculiani
70a0a1c983 [entropy.client.interfaces.package] drop unused metadata 2013-11-23 14:15:05 +01:00
Fabio Erculiani
005ac42610 [tests] port code to the new PackageActionFactory API 2013-11-23 13:58:39 +01:00
Fabio Erculiani
453481204d [entropy.client.interfaces.package] split Package class, create new API
The Package has been split into multiple PackageAction based classes.
The new interface uses a factory (PackageActionFactory) to build
the PackageAction objects on behalf of the caller.

The new factory-based interface is clean, modular and faster than
the old Package spaghetti class.

Backward compatibility has been preserved, as long as caller doesn't
peek into internal structures and metadata. The old interface has
been deprecated and a new Entropy Client method called PackageActionFactory()
has been added.

Please migrate your code to the new API, the old API will be dropped in 1
solar year.
2013-11-23 13:00:53 +01:00
Fabio Erculiani
44444b43d8 [entropy.client.misc] drop unused variables 2013-11-22 19:00:29 +01:00
Fabio Erculiani
8f083449a6 [entropy.client.misc] drop deprecated class, sulfur is dead 2013-11-22 18:12:23 +01:00
Fabio Erculiani
1b6e7ff2ff [entropy.client.package] move FileContent* classes to separate module 2013-11-22 15:17:38 +01:00
Fabio Erculiani
7fe3c021bd [entropy.client] move package.py to Python package 2013-11-22 15:00:14 +01:00
Fabio Erculiani
69fb71f957 [entropy.client.package] code style updates 2013-11-22 14:02:49 +01:00
Fabio Erculiani
c04f2c5a50 [entropy.client.package] pylint sweep 2013-11-22 13:57:14 +01:00
Fabio Erculiani
ddfdc51791 [entropy.client.package] make _handle_config_protect() faster, use sets 2013-11-22 13:42:06 +01:00
Fabio Erculiani
782ec72fd6 [entropy.const] drop all the config_protect+mask objects from etpConst 2013-11-22 13:40:13 +01:00