Commit Graph

9661 Commits

Author SHA1 Message Date
Fabio Erculiani 88dde368f3 [todo] update TODO 2012-09-10 14:47:13 +02:00
Fabio Erculiani fff4d67761 [todo] update TODO 2012-09-09 09:45:23 +02:00
Fabio Erculiani b47ddb87f8 [Solo] implement "solo match" command 2012-09-09 09:45:14 +02:00
Fabio Erculiani cb79d91cd5 [Solo] implement "solo search" command 2012-09-08 21:34:43 +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 e11493ffe2 Tagging Entropy version 141 2012-09-08 20:11:23 +02:00
Fabio Erculiani f675c5fdae Release Entropy 141 2012-09-08 20:11:23 +02:00
Fabio Erculiani 6f00e50faa [client] update entropy.pot 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 b0bbf2762c Tagging Entropy version 140 2012-09-08 20:11:23 +02:00
Fabio Erculiani af338e7564 Release Entropy 140 2012-09-08 20:11:23 +02:00
Fabio Erculiani 97aeed94be [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-08 20:11:23 +02:00
Fabio Erculiani 8df6964462 [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-08 20:11:22 +02:00
Fabio Erculiani c9ed841e75 [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-08 20:11:22 +02:00
Sławomir Nizio 6c96c7608e [magneto,rigo] modernize .desktop files 2012-09-08 20:11:22 +02:00
Fabio Erculiani 79d98239bf Tagging Entropy version 139 2012-09-08 20:11:22 +02:00
Fabio Erculiani ef9258b4ce Release Entropy 139 2012-09-08 20:11:22 +02:00
Fabio Erculiani d9bfa7f11f [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-08 20:11:22 +02:00
Fabio Erculiani 65a1949c0c Tagging Entropy version 138 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 86d790648d [docs] update TODO 2012-09-08 20:11:22 +02:00
Fabio Erculiani d166690c35 [eit.commands.lock] validate repository_id in "eit lock" and "eit unlock" 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 814ff4664d Tagging Entropy version 137 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 1aee2a4371 [eit] handle OnlineMirrorError more nicely. 2012-09-08 20:11:21 +02:00
Fabio Erculiani 5cae81b092 [todo] update TODO 2012-09-02 20:48:40 +02:00
Fabio Erculiani 6c51486a65 [Solo] implement "solo notice" command 2012-09-02 20:27:00 +02:00
Fabio Erculiani 453d639ae0 [Solo] fix typo in module title 2012-09-02 20:26:46 +02:00
Fabio Erculiani a2ca90a239 [todo] write my own random things in the TODO 2012-09-02 16:54:14 +02:00
Fabio Erculiani b5768185c3 [Solo] complete implementation of "solo repo" command 2012-09-01 21:05:01 +02:00
Fabio Erculiani 72eda95f82 [Solo] add incomplete "solo repo" command module 2012-08-31 22:17:10 +02:00
Fabio Erculiani 732fd4f7bf [Solo] fix ALLOW_UNPRIVILEGED handling 2012-08-31 22:16:37 +02:00
Fabio Erculiani e3e1352475 [solo.commands.status] new command "solo status" implemented 2012-08-27 20:42:14 +02:00
Fabio Erculiani b3b047be0d [solo.commands.update] use gi.introspection if available
Use the gobject-introspection GLib libraries instead of the old
ones if they are available, for the communication with RigoDaemon
in case of unprivileged repository update requests.
2012-08-26 16:18:02 +02:00
Fabio Erculiani 2041dc52db Tagging Entropy version 136 2012-08-26 16:02:18 +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 d1475cff31 [eit.commands.reset] subclass EitPull rather than EitPush 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 9dd85491f0 Tagging Entropy version 135 2012-08-26 16:02:17 +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