Commit Graph

517 Commits

Author SHA1 Message Date
Fabio Erculiani 2512df68ad [lib/] drop etpUi['debug'] 2012-11-06 20:13:49 +01:00
Fabio Erculiani 15c6fc1b77 [entropy.const] drop etpUi['clean'] 2012-11-05 22:29:30 +01:00
Fabio Erculiani 9095f62f6b [entropy.const] drop etpUi['warn'] 2012-11-05 22:27:46 +01:00
Fabio Erculiani aaf2b8eee8 [entropy.const] kill etpUi['quiet'] 2012-11-05 21:40:44 +01:00
Fabio Erculiani df3c27deac [entropy*] drop etpUi usage where possible 2012-11-04 22:36:54 +01:00
Fabio Erculiani 280a7067b3 [entropy.cli] drop module, move code to client/ and server/
Even though it is a small code duplication, entropy.cli does make
much less sense.
2012-11-04 21:11:56 +01:00
Fabio Erculiani b07beb1dcd [entropy.const] drop etpConst['errorstatus'] 2012-11-04 18:35:19 +01:00
Fabio Erculiani 49803e21b3 [entropy.server] reduce computational complexity of scan_package_changes() by using memoization 2012-11-04 18:27:02 +01:00
Fabio Erculiani 26b7d9cb54 [entropy.spm] PortagePlugin, xpaktools: drop append_xpak() 2012-11-04 10:36:55 +01:00
Fabio Erculiani 9e08b70113 [equo] migrate to Solo, drop old and crufty code, peace and love 2012-11-03 23:57:25 +01:00
Fabio Erculiani c8ebc02890 [entropy.qa] add silent= keyword to test_shared_objects() 2012-11-02 18:39:57 +01:00
Fabio Erculiani 44e8d71550 [entropy.dep] create_package_filename: add revision keyword argument 2012-09-30 18:57:33 +02:00
Fabio Erculiani 316ef31dcd [entropy.const] do not alter etpConst['systemroot'] variable 2012-09-08 20:11:24 +02:00
Fabio Erculiani 6ddc4c2f14 [tests] fix Entropy Client tests (add affected_infofiles metadata) 2012-09-08 20:11:23 +02:00
Fabio Erculiani 9d1dd2f5b3 [entropy.const] move Entropy Resources Lock path to /var/lib/entropy
This commit moves the Entropy Resources Lock from:
> /var/lib/entropy/client/database/<arch>/.using_resources
to a simpler:
> /var/lib/entropy/.using_resources

The main reason for the move is to make such path more consistent across
architectures.
2012-09-08 20:11:23 +02:00
Fabio Erculiani a659ac2f66 [entropy.const] remove hardcoded slashes, rewrite paths using os.path.join() 2012-09-08 20:11:23 +02:00
Fabio Erculiani f675c5fdae Release Entropy 141 2012-09-08 20:11:23 +02:00
Fabio Erculiani 6654c83550 [entropy.client.trigger] implement support for automagic /usr/share/info/*/dir update 2012-09-08 20:11:23 +02:00
Fabio Erculiani af338e7564 Release Entropy 140 2012-09-08 20:11:23 +02:00
Fabio Erculiani ef9258b4ce Release Entropy 139 2012-09-08 20:11:22 +02:00
Fabio Erculiani ec425094cd Release Entropy 138 2012-09-08 20:11:22 +02:00
Fabio Erculiani c4b9a0df28 [entropy.dump] do not use os.fdopen() in dumpobj()
It has been observed that using os.fdopen() below in multi-threaded
scenarios is causing EBADF (thus OSError). There is probably a racen
condition down in the stack or mkstemp() itself is not guaranteed against
concurrent access. For now, just consume one more file descriptor and
avoid the race completely.
2012-09-08 20:11:22 +02:00
Fabio Erculiani 1001bc30c6 [entropy.spm] __source_env_get_var: fix typo in tmp file prefix string 2012-09-08 20:11:21 +02:00
Fabio Erculiani 178e2c62cd Release Entropy 137 2012-09-08 20:11:21 +02:00
Fabio Erculiani 20253ca99d [entropy.spm] __source_env_get_var: avoid deadlocking due to stdout buffer full
Using subprocess.PIPE and Popen.wait() causes the child process to
block in case of write (stdout) buffer full. Rewrite the whole
function to use simple a simple fd via mkstemp(). This way, even
if the env variable is very long, the process won't hang.

This issue has been observed in dev-texlive/texlive-latexextra-2012's
SRC_URI, which is more than 131k chars long!
2012-09-08 20:11:21 +02:00
Fabio Erculiani f173b5850f Release Entropy 136 2012-08-26 16:02:18 +02:00
Fabio Erculiani 79c567afb5 [entropy.server.db] when download is complete, unlock all the mirrors
Unlocking just the working one causes the others to be left in
locked status until a manual unlock is issued.
2012-08-26 16:02:18 +02:00
Fabio Erculiani ebc4ec7b08 [entropy.spm] look for modinfo inside /usr/bin
After more than 10 years people still change paths like this.
:-/
2012-08-26 16:02:18 +02:00
Fabio Erculiani 5b8de80fb4 Release Entropy 135 2012-08-26 16:02:17 +02:00
Fabio Erculiani 97e6fe31e8 [entropy.services] fix string format arguments 2012-08-26 16:02:17 +02:00
Fabio Erculiani aebc0571f3 [entropy.client.interfaces.db] fix undefined reference to TIMEOUT_FETCH_ERROR 2012-08-26 16:02:17 +02:00
Fabio Erculiani 9e725b510c [entropy.misc] fix undefined reference to class object 2012-08-26 16:02:17 +02:00
Fabio Erculiani 23ec7006f4 [entropy.spm] PortagePlugin: explicitly save err object 2012-08-26 16:02:17 +02:00
Fabio Erculiani 699bf4fe51 [entropy.db.sql] move methods used by _addPackage() into class 2012-08-26 16:02:17 +02:00
Fabio Erculiani 3cf0a0cee2 Release Entropy 134 2012-08-26 16:02:17 +02:00
Fabio Erculiani 76edd9f0a3 [entropy.client.package] filter out splitdebug paths if splitdebug is disabled
If splitdebug was previously enabled for a package, and its
files were installed, when splitdebug is turned off Package kept
printing collision messages about /usr/lib/debug files.
This happened because packages contain /usr/lib/debug paths in
their content metadata (even those with separate splitdebug tarballs)
and this wasn't cleared out before installed packages repository
metadata update. Thus, during the cleanup step, these paths popped out
generating invalid warnings.
2012-08-26 16:02:17 +02:00
Fabio Erculiani e17de72db8 [entropy.spm] ensure that Portage vdb cache is always invalidated
It happened that assign_uid_to_installed_package() did not explicitly
invalidate the Portage vdb cache and, while this is used inside
add_installed_package(), which did invalidate the vdb cache on its own
already, it is also called directly by entropy.client.interfaces.package
code.
Moreover, root= value wasn't properly handled throughout the execution
of add_installed_package(), which may have caused cache invalidation
issues described above.
2012-08-26 16:02:17 +02:00
Fabio Erculiani 3becb6a215 [entropy.*] don't use magic constants for UrlFetcher errors 2012-08-21 10:51:45 +02:00
Fabio Erculiani 4567857b90 [entropy.fetchers] UrlFetcher: expose generic error codes via class property 2012-08-21 10:51:45 +02:00
Fabio Erculiani 28c61591cd [entropy.fetchers] MultipleUrlFetcher: join() threads explicitly
This avoids a potentially infinite loop if one of the threads dies
unexpectedly.
2012-08-21 10:51:45 +02:00
Fabio Erculiani 796e71e9ac [repo] migrate shebangs to /usr/bin/python 2012-08-18 16:53:32 +02:00
Fabio Erculiani 1f84203788 [entropy.spm] PortagePlugin: Python 3.x, use f.buffer.write() with bytes() 2012-08-17 22:42:36 +02:00
Fabio Erculiani ff133b432a [entropy.services.client] restore Python 3.x compatibility 2012-08-17 22:30:45 +02:00
Fabio Erculiani 333e82ea10 [entropy.spm] PortagePlugin: keep keyslot as unicode, Python 3.x compatibility 2012-08-17 22:30:03 +02:00
Fabio Erculiani e90cb74c27 [entropy.spm] PortagePlugin: expose __next__() unconditionally 2012-08-17 21:41:08 +02:00
Fabio Erculiani 206fe49203 [entropy.db.sql] add __next__() to iterators, make Python3 happy 2012-08-17 21:40:55 +02:00
Fabio Erculiani 61eeaed14e [entropy.client.package] add __next__() to iterators, make Python3 happy 2012-08-17 21:40:35 +02:00
Fabio Erculiani a37d7ca195 [entropy.db.sqlite] move _addPackage() to entropy.db.sql 2012-08-16 21:35:45 +02:00
Fabio Erculiani 5a49098515 [entropy.db] move _getLiveCacheKey and __hash__ to entropy.db.sql 2012-08-16 21:30:51 +02:00
Fabio Erculiani a0394ba9a5 [entropy.db.sql] introduce _UPDATE_OR_REPLACE and move remaining SQL to entropy.db.sql 2012-08-16 21:20:46 +02:00