Commit Graph

3863 Commits

Author SHA1 Message Date
Fabio Erculiani e85f72d309 [entropy.client.interfaces.methods] implement branch upgrade/migration script hooks via client database 2009-06-29 10:35:37 +02:00
Fabio Erculiani b1a1bf10e2 [entropy.client.interfaces.client] do not run branch upgrade/migration scripts at first SystemSettings Entropy Client Plugin iteration 2009-06-29 10:34:10 +02:00
Fabio Erculiani 882eb3cb12 [entropy.client.interfaces.cache/entropy.client.interfaces.dep] improve updates calculation cache item storage 2009-06-29 10:32:55 +02:00
Fabio Erculiani 576438323e [entropy.db] implement branch migration support script handling metadata in client db 2009-06-29 10:31:43 +02:00
Fabio Erculiani 1628092399 [docs] update API documentation 2009-06-28 00:23:57 +02:00
Fabio Erculiani 623416e1bf [todo] update TODO 2009-06-28 00:21:21 +02:00
Fabio Erculiani c9a8736ba1 [entropy.*] 'branches' metadatum is dead, eventually.
This commit removes the quirk used mainly server-side to make
tidy working on branches sharing package files.
Since tidy function now uses a more intelligent technique, this
is not needed anymore.
2009-06-28 00:19:34 +02:00
Fabio Erculiani dc61985276 [entropy.server.interfaces.mirrors] finalize tidy_mirrors method 2009-06-28 00:14:45 +02:00
Fabio Erculiani f9ce68b223 [entropy.client.interfaces.client] ignore exceptions in __run_post_branch_upgrade_hooks() when calculating world updates 2009-06-27 23:54:56 +02:00
Fabio Erculiani f81d46889e [entropy.server.mirrors] add two new methods + new tidy mechanism
Added methods:
- get_remote_branches()
- read_remote_file_in_branches()
Please read their docstrings.

Moreover, a new experimental technique to tidy expired packages
has been introduced. It uses the new metafile 'packages.db.pkglist'
to detect if specific package is used by other branches before
validating the removal.
2009-06-27 23:47:38 +02:00
Fabio Erculiani 35e133987f [entropy.transceivers] FtpInterface: tweak list_dir method 2009-06-27 23:09:31 +02:00
Fabio Erculiani f13a9c5ab5 [todo] update TODO 2009-06-27 19:06:16 +02:00
Fabio Erculiani 7fa35edaaa [sulfur] clear SystemSettings at the end of packages installation to allow branch hooks to run 2009-06-27 19:05:53 +02:00
Fabio Erculiani 2caba4969d [client.text_ui] clear SystemSettings at the end of worldUpdate to allow branch hooks to run 2009-06-27 19:05:23 +02:00
Fabio Erculiani 1a00709f4e [entropy.client.interfaces.client] SystemSettingsPlugin init changes
Initialization of Entropy Client SystemSettings plugin has been moved
at the bottom of the Entropy Client constructor and branch migration
support "triggers" have been moved to the new post_setup SystemSettingsPlugin
hook.
2009-06-27 19:02:45 +02:00
Fabio Erculiani 3e81791d5d [entropy.client.interfaces.methods] Entropy Client SystemSettings plugin is not mandatory 2009-06-27 19:01:56 +02:00
Fabio Erculiani d37437a006 [entropy.client.interfaces.dep] add argument to calculate_world_updates to ignore critical updates check inside it 2009-06-27 19:00:49 +02:00
Fabio Erculiani 4e8d08f221 [entropy.core] improve plugins support, add post_setup method
It is now possible to run post SystemSettings setup stuff in
SystemSettingsPlugin instances. This could be handy to hook
code that needs SystemSettings complete metadata itself.
2009-06-27 18:58:42 +02:00
Fabio Erculiani 74dceaece1 [entropy.client.interfaces.client] add post-branch migration hooks execution into Entropy Client SystemSettings plugin 2009-06-27 17:42:26 +02:00
Fabio Erculiani 7313b19d24 [entropy.client.interfaces.methods] tweak run_repositories_post_branch_switch_hooks to return more information 2009-06-27 17:41:57 +02:00
Fabio Erculiani cdc05dbf0c [entropy.const] create const file for storing previous branch value 2009-06-27 17:38:00 +02:00
Fabio Erculiani 184f5dc7ce [client.text_ui] beautify 'equo world' output 2009-06-27 17:36:01 +02:00
Fabio Erculiani 3e9af17094 [client.text_ui] remove branch migration script code, will be handled internally 2009-06-27 17:29:41 +02:00
Fabio Erculiani 3e48c695f8 [entropy.const] fix trigger_sh_interpreter, add ${ROOT} prefix 2009-06-27 17:20:39 +02:00
Fabio Erculiani a14a6c1c8b [entropy-notification-applet] don't leave zombie children processes when spawning sulfur 2009-06-27 17:10:34 +02:00
Fabio Erculiani bcd8d97843 [entropy.client.interfaces.repository] run_sync should not re-generate cache but just drop 2009-06-27 16:57:44 +02:00
Fabio Erculiani 1c53cdaca8 [entropy.client.interfaces.cache] stop EntropyCacher on purge_cache rather than on generate_cache 2009-06-27 16:56:02 +02:00
Fabio Erculiani 3ce1f4cf5a [entropy.client.interfaces.cache] fix generate_cache, cache was trashed 2009-06-27 16:54:15 +02:00
Fabio Erculiani 35c96d1257 [entropy.client.interfaces.dep] always consider branch setting in dep cache retrieval 2009-06-27 16:44:19 +02:00
Fabio Erculiani 5e645819fb [entropy.client.interfaces.cache] always consider branch setting in dep cache retrieval 2009-06-27 16:44:10 +02:00
Fabio Erculiani b8bde39d09 [entropy.client.interfaces.methods] run_repositories_post_branch_switch_hooks: loop on all the repositories, "excluded" included 2009-06-27 16:24:51 +02:00
Fabio Erculiani 083bfa609e [entropy.client.interfaces.methods] add branch migration support methods
- run_repositories_post_branch_switch_hooks
- run_repository_post_branch_upgrade_hooks
- get_post_branch_migration_status_file
- get_post_branch_upgrade_status_file

docstrings included.
2009-06-27 16:16:48 +02:00
Fabio Erculiani ca01e3ea0d [entropy.const] complete const implementation of branch migration scripts support 2009-06-27 16:16:25 +02:00
Fabio Erculiani 955a0d64cc [entropy.tests] add missing test package 2009-06-27 12:01:16 +02:00
Fabio Erculiani bbe8a1ce02 [entropy.tests] add entropy.tools.uncompress_tar_bz2 test 2009-06-27 10:14:49 +02:00
Fabio Erculiani d7c79ca008 [entropy.tests] move tbz2 packages to packages/ 2009-06-27 09:57:57 +02:00
Fabio Erculiani 56545b5588 [entropy.tools] uncompress_tar_bz2: do not try to chmod symlinks 2009-06-26 10:41:53 +02:00
Fabio Erculiani 7aa3844b78 [entropy.client.interfaces.package] always raise real exception on package extraction 2009-06-26 10:41:08 +02:00
Fabio Erculiani dec2dbe464 [entropy.client.interfaces.methods] on quickpkg_handler copy file modes 1:1
It happened that setgid and setuid bits were not copied by default.
This commit fixes it.
2009-06-26 09:38:03 +02:00
Fabio Erculiani 2f3db91df5 [entropy.spm] on quickpkg copy file modes 1:1
It happened that setgid and setuid bits were not copied by default.
This commit fixes it.
2009-06-26 09:36:54 +02:00
Fabio Erculiani 9154235172 [client.text_ui] implement post branch hop script in equo
NOTE: this code will be moved to entropy.client in the next commit.
It's just a testing proof of concept, and still incomplete.
2009-06-24 13:57:59 +02:00
Fabio Erculiani 19c36f4ac4 [entropy.const] add const support for pre/post upgrade scripts 2009-06-24 13:57:21 +02:00
Fabio Erculiani 6beeab4ff1 [todo] update TODO 2009-06-24 13:56:38 +02:00
Fabio Erculiani caeee757aa [client.text_smart] fix "smart inflate" tool 2009-06-23 16:15:39 +02:00
Fabio Erculiani e8226c8fa2 [entropy.client.interfaces.trigger] remove unused methods 2009-06-23 08:39:53 +02:00
Fabio Erculiani b10d550fa4 [entropy.client.interfaces.trigger] remove kernelmod trigger, hopefully not needed anymore 2009-06-23 08:07:36 +02:00
Fabio Erculiani e4ff57357b [entropy.client.interfaces.trigger] fix conftouch trigger 2009-06-23 08:05:53 +02:00
Fabio Erculiani d8a2938d7e [entropy.client.interfaces.trigger] fix syntax error 2009-06-23 06:07:39 +02:00
Fabio Erculiani ecde88d899 [entropy.client.interfaces] tweak postremove trigger 2009-06-22 06:25:25 +02:00
Fabio Erculiani 6997668317 [todo] update TODO 2009-06-22 06:25:18 +02:00