Commit Graph

9681 Commits

Author SHA1 Message Date
Fabio Erculiani
022375fd7d [services] ignore ENOENT errors in entropy-pkgdelta-generator 2012-10-22 19:50:43 +02:00
Fabio Erculiani
70bc4db1f2 [entropy.spm] PortagePlugin: strip /* from SLOT metadata
When generating Entropy metadata out of Portage xpak information,
strip /* from SLOT (a.k.a. the sub-slots part).
At the same time, rework get_installed_package_metadata() to return
stripped SLOT information to upper layers.

Sub-slots have little meaning for Entropy packages, since rebuilds are
not its business and soname bumps are already properly detected at
dependencies calculation time. However, implementing this feature in
future might have sense, for some currently unknown reasons.
2012-10-18 21:23:29 +02:00
Fabio Erculiani
2951b0486c [entropy.spm] PortagePlugin: promote kill_slot to class protected method 2012-10-17 23:37:53 +02:00
Fabio Erculiani
ba0252c152 [entropy.spm] PortagePlugin: kill /* from dependency slot substring 2012-10-17 23:01:08 +02:00
Fabio Erculiani
9c083b3aed [entropy.spm] PortagePlugin: add support for EAPI5 slot operator dependencies 2012-10-17 22:01:42 +02:00
Fabio Erculiani
6df8ff642d Tagging Entropy version 145 145 2012-09-30 21:53:40 +02:00
Fabio Erculiani
a27d922cb4 Release Entropy 145 2012-09-30 21:53:40 +02:00
Fabio Erculiani
398379294f [entropy.{spm,client}] fix content generation for injected packages
Since Entropy Client migration to file iterator-based content metadata,
such information became unavailable to Entropy SPM's add_installed_package().
In the Portage SPM plugin implementation, such method was responsible of
reconstructing the XPAK CONTENTS file if missing. Injected packages are actually
missing that file (because it does not get created through "emerge -B").
The net result is that Portage vdb metadata for Entropy injected packages was
incomplete.
2012-09-30 21:33:09 +02:00
Fabio Erculiani
8f04abbc63 Tagging Entropy version 144 144 2012-09-21 16:45:55 +02:00
Fabio Erculiani
34f3e248d2 Release Entropy 144 2012-09-21 16:45:54 +02:00
Fabio Erculiani
523d9783a6 [entropy.client.dep] force critical updates to be always pulled in. Avoids the Glibc effect 2012-09-21 15:31:09 +02:00
Fabio Erculiani
21e2251008 [entropy.server.mirrors] tidy_mirrors: make sure to clean the upload/ directory as well 2012-09-21 14:57:48 +02:00
Fabio Erculiani
4812e3365d [conf] add dl.sabayon.org to repository mirrors 2012-09-20 17:17:36 +02:00
Fabio Erculiani
6ebc7eac0a [client] update entropy.pot 2012-09-20 13:01:38 +02:00
Fabio Erculiani
505f664055 [entropy.client.db] fix typo in message string 2012-09-20 13:01:20 +02:00
Fabio Erculiani
c3e8a370e8 [client] update entropy.pot 2012-09-20 12:58:57 +02:00
Fabio Erculiani
050e700dcf [entropy.client.db] fallback to package URLs if the repository database URL is broken.
This commit introduces the ability for Entropy Client to fall back to
package URLs if the repository database URL is not responding as expected
(tested at the application level).
This improves fault-tolerance greatly.
2012-09-20 12:55:34 +02:00
Fabio Erculiani
4b0e7ee7d3 [entropy.tools] introduce expand_plain_database_mirror()
This follows the previously introduced expand_plain_package_mirror()
method. Now both methods can expand repository and package mirror URLs
read from Entropy repository configuration files adding product, arch
and branch information.
2012-09-20 12:53:49 +02:00
Fabio Erculiani
7cff01bbd5 [entropy.const] export "database" sub-directory constant through etpConst 2012-09-20 12:52:36 +02:00
Fabio Erculiani
0a3a330b62 [todo] update TODO 2012-09-20 11:41:32 +02:00
Fabio Erculiani
2a6ceaae35 [services] entropy-pkgdelta-generator: do not generate .edelta for files smaller than 1Mb 2012-09-19 22:13:30 +02:00
Fabio Erculiani
3eb70a3d47 [conf] drop aarnet.edu mirror, dead 2012-09-19 16:47:25 +02:00
Fabio Erculiani
66ef85769e [conf] add mirror.de.sabayon.org to mirror list 2012-09-19 16:10:07 +02:00
Fabio Erculiani
6b04512a91 Tagging Entropy version 143 143 2012-09-17 12:41:58 +02:00
Fabio Erculiani
fa006188f1 Release Entropy 143 2012-09-17 12:41:56 +02:00
Fabio Erculiani
68ae30e5ba [Rigo] fix infinite loop in _vanished_callback() 2012-09-17 12:40:46 +02:00
Fabio Erculiani
544fe8a0e3 [client] update entropy.pot 2012-09-16 11:57:24 +02:00
Fabio Erculiani
a643793306 [client] update translations 2012-09-16 11:55:53 +02:00
Fabio Erculiani
e2a075cd33 [services] entropy-pkgdelta-generator: wrap md5sum() around IOError try/except 2012-09-16 07:42:10 +02:00
Fabio Erculiani
d3a1701c67 [services] update repository-webinstall-generator-executor 2012-09-16 07:28:31 +02:00
Fabio Erculiani
58f1682c41 [entropy.misc] drop EntropyGeoIP, no longer used 2012-09-15 12:50:53 +02:00
Fabio Erculiani
e04138541b [todo] update TODO 2012-09-09 18:41:48 +02:00
Fabio Erculiani
70a4e6493a Tagging Entropy version 142 142 2012-09-09 18:07:22 +02:00
Fabio Erculiani
724a4d7e87 Release Entropy 142 2012-09-09 18:07:21 +02:00
Fabio Erculiani
3ee803c2ba [entropy.const] implement a debug watchdog thread dumper thread.
If ETP_DEBUG_WATCHDOG env variable is set, entropy.const will create
a timer thread that prints to stderr the full application thread dump.
This is quite useful in case of hard to reproduce deadlocks at the library
level.
2012-09-09 18:04:52 +02:00
Fabio Erculiani
b25e2b8f03 [entropy.cache] replace fork() usage with multithreading.
Mixing multiprocessing with multithreading is bad and we all know that.
However, in this specific case there was nothing wrong in running tiny
functions in another process.
It seems that entropy.dump.dumpobj() is efficient enough nowadays to
have it running in the same process anyway.
2012-09-09 17:34:22 +02:00
Fabio Erculiani
446432c64d [entropy.const] do not alter etpConst['systemroot'] variable 2012-09-08 16:57:08 +02:00
Fabio Erculiani
c39bec886b [tests] fix Entropy Client tests (add affected_infofiles metadata) 2012-09-08 16:56:44 +02:00
Fabio Erculiani
627af78498 [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 16:34:05 +02:00
Fabio Erculiani
ab9e3e9791 [entropy.const] remove hardcoded slashes, rewrite paths using os.path.join() 2012-09-08 16:28:31 +02:00
Fabio Erculiani
ceedf8d161 Tagging Entropy version 141 141 2012-09-06 20:04:43 +02:00
Fabio Erculiani
5c1f8d9b94 Release Entropy 141 2012-09-06 20:04:42 +02:00
Fabio Erculiani
a1077e6c0a [client] update entropy.pot 2012-09-06 20:03:51 +02:00
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