Commit Graph

9638 Commits

Author SHA1 Message Date
Fabio Erculiani 4bbf8d773b [entropy.client.trigger] implement support for automagic /usr/share/info/*/dir update 2012-09-06 20:01:17 +02:00
Fabio Erculiani b464e3dd4a Tagging Entropy version 140 140 2012-09-03 19:25:02 +02:00
Fabio Erculiani 91a96abd45 Release Entropy 140 2012-09-03 19:25:01 +02:00
Fabio Erculiani 2092303f55 [Rigo] always validate repositories after update
On a fresh install, with no downloaded repositories, users were forced
to restart Rigo in order to have the search function fully functional.
If a local repository is configured but not downloaded (thus, not
available) the same bug happens.

It turned out to be Entropy._enabled_repos, returned by Entropy.repositories()
which didn't get re-initialized after a repository update. This commit adds
a _validate_repositories() call inside _repositories_updated_signal().
2012-09-03 19:21:56 +02:00
Fabio Erculiani 6f137d758d [Rigo] Application: escape _("N/A")
Application.get_markup() and Application.get_extended_markup() must
always return bytestring (decoded) data to make Gtk3 libs and code
happy. It happened that _("N/A") was returned without passing through
prepare_markup() or escape_markup(). This commit fixes it.
2012-09-02 21:03:19 +02:00
Fabio Erculiani 763ece862e [Rigo] RigoServiceController: convert app_name=_("Application") to rawstring
If app_name is unicode decoded, the following code will fail (in pl_PL):

  >>> prepare_markup(_("<b>%s</b>, internal error")) % (_("Application"),)

with a nice UnicodeDecodeError due to implicit bytestring decode.
prepare_markup() output is bytestring, _() output is unicode.
Thanks to Enlik for reporting.
2012-09-02 21:00:26 +02:00
Sławomir Nizio 918a388252 [magneto,rigo] modernize .desktop files 2012-09-02 20:49:31 +02:00
Fabio Erculiani 32fa18f638 Tagging Entropy version 139 139 2012-09-02 17:21:41 +02:00
Fabio Erculiani 4a37aed84a Release Entropy 139 2012-09-02 17:21:40 +02:00
Fabio Erculiani fa0eb83df4 [RigoDaemon] half the timer frequency and add some randomization in _auto_repositories_update()
When sabayon-weekly is updated, the web service is hit by a huge amount of
requests. This commits add a bit more entropy on the execution of
_auto_repositories_update() (random between 30mins to 2 hours) and reduces
the timer frequency to 8hrs (from 4).
2012-09-02 17:00:03 +02:00
Fabio Erculiani c332d1a6f8 Tagging Entropy version 138 138 2012-09-01 15:24:17 +02:00
Fabio Erculiani 3d923e0727 Release Entropy 138 2012-09-01 15:24:16 +02:00
Fabio Erculiani 7ddb21276c [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-01 15:21:39 +02:00
Fabio Erculiani 0c0ac3261f [docs] update TODO 2012-08-31 21:31:46 +02:00
Fabio Erculiani db542393fa [eit.commands.lock] validate repository_id in "eit lock" and "eit unlock" 2012-08-29 16:40:38 +02:00
Fabio Erculiani 32104fe63c [entropy.spm] __source_env_get_var: fix typo in tmp file prefix string 2012-08-27 11:47:00 +02:00
Fabio Erculiani 3138bbad8d Tagging Entropy version 137 137 2012-08-27 11:37:52 +02:00
Fabio Erculiani 84b13ffb95 Release Entropy 137 2012-08-27 11:37:50 +02:00
Fabio Erculiani 0b9acb24a4 [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-08-27 11:32:42 +02:00
Fabio Erculiani 0e0483e9c9 [eit] handle OnlineMirrorError more nicely. 2012-08-27 10:15:36 +02:00
Fabio Erculiani c3c5e9e97d Tagging Entropy version 136 136 2012-08-24 16:16:17 +02:00
Fabio Erculiani 6744795912 Release Entropy 136 2012-08-24 16:16:15 +02:00
Fabio Erculiani 3be15f077b [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-23 11:29:27 +02:00
Fabio Erculiani ec1e2b431d [eit.commands.reset] subclass EitPull rather than EitPush 2012-08-23 11:05:17 +02:00
Fabio Erculiani d530ae4cb3 [entropy.spm] look for modinfo inside /usr/bin
After more than 10 years people still change paths like this.
:-/
2012-08-23 09:29:21 +02:00
Fabio Erculiani ae8e6f6c3c Tagging Entropy version 135 135 2012-08-22 17:43:43 +02:00
Fabio Erculiani b2c88b0c20 Release Entropy 135 2012-08-22 17:43:41 +02:00
Fabio Erculiani 385c50b548 [entropy.services] fix string format arguments 2012-08-22 17:43:11 +02:00
Fabio Erculiani ab76d2254d [entropy.client.interfaces.db] fix undefined reference to TIMEOUT_FETCH_ERROR 2012-08-22 17:42:58 +02:00
Fabio Erculiani 541f518ec3 [entropy.misc] fix undefined reference to class object 2012-08-22 17:42:05 +02:00
Fabio Erculiani c64441dcfc [entropy.spm] PortagePlugin: explicitly save err object 2012-08-22 17:41:27 +02:00
Fabio Erculiani 4da0c49b07 [entropy.db.sql] move methods used by _addPackage() into class 2012-08-22 17:41:01 +02:00
Fabio Erculiani 359ac047ff Tagging Entropy version 134 134 2012-08-22 13:19:35 +02:00
Fabio Erculiani 04ce12e276 Release Entropy 134 2012-08-22 13:19:34 +02:00
Fabio Erculiani aae376f369 [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-22 13:09:54 +02:00
Fabio Erculiani 657478b4ee [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-22 12:07:56 +02:00
Fabio Erculiani fc8ed7329d [entropy.*] don't use magic constants for UrlFetcher errors 2012-08-21 10:46:56 +02:00
Fabio Erculiani af7ed0d04c [entropy.fetchers] UrlFetcher: expose generic error codes via class property 2012-08-21 10:38:08 +02:00
Fabio Erculiani b68e9104b5 [entropy.fetchers] MultipleUrlFetcher: join() threads explicitly
This avoids a potentially infinite loop if one of the threads dies
unexpectedly.
2012-08-21 09:31:15 +02:00
Fabio Erculiani 6bf5b0441e [repo] remove empty README file 2012-08-20 16:30:57 +02:00
Fabio Erculiani 2e6b176c83 [eit] do not raise any exception in sys.excepthook 2012-08-19 00:25:31 +02:00
Fabio Erculiani 796e71e9ac [repo] migrate shebangs to /usr/bin/python 2012-08-18 16:53:32 +02:00
Fabio Erculiani c9242e2517 [todo] update TODO 2012-08-18 10:13:46 +02:00
Fabio Erculiani d56cd777c8 [RigoDaemon] some minor Python 3.x related fixes 2012-08-18 09:53:18 +02:00
Fabio Erculiani facd0ec069 [equo] update entropy.pot 2012-08-18 09:51:14 +02:00
Fabio Erculiani 41adc104ca [equo] update translations 2012-08-18 09:50:58 +02:00
Fabio Erculiani e2c0ddb526 [Rigo] Python 3.x compatibility fixes 2012-08-18 09:44:26 +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 fb6957e5fa [equo] fix UGC vote get command, do not require login credentials 2012-08-17 22:32:50 +02:00
Fabio Erculiani ff133b432a [entropy.services.client] restore Python 3.x compatibility 2012-08-17 22:30:45 +02:00