Commit Graph

2218 Commits

Author SHA1 Message Date
Fabio Erculiani b2b5c4d95a make default revision to match EAPI (Entropy API) 2009-04-13 23:04:51 +02:00
Fabio Erculiani 9d4684ad73 remove compatibility modules 2009-04-13 23:03:56 +02:00
Fabio Erculiani 67e26003ff entropy.security: use entropy.output instead of outputTools 2009-04-13 23:03:39 +02:00
Fabio Erculiani f8cd7965b2 entropy.server.interfaces.main: fix settings backup by copying the
whole dictionary
2009-04-13 09:46:30 +02:00
Fabio Erculiani fb2f2a04dd entropy.core.SystemSettings: copy backup dictionary instead of passing
the same pointer
2009-04-13 09:45:33 +02:00
Fabio Erculiani ff5d295567 entropy.client.interfaces.trigger: remove old code comment 2009-04-13 09:44:53 +02:00
Fabio Erculiani 078a73d496 entropy.client.interfaces.trigger: excluded SPM calls when spm phase
is not specified.

This gives a big speed boost on the install process. SPM (Portage) is
not even called when certain package install phase is not set (preinst,
prerm, postinst, postrm)
2009-04-11 18:47:02 +02:00
Fabio Erculiani 4811c1a75f entropy.const: add SPM ebuild phases constants 2009-04-11 18:46:41 +02:00
Fabio Erculiani a9da9e1ffe entropy.db: add spm_phases metadatum to getPackageData 2009-04-11 18:42:34 +02:00
Fabio Erculiani e9ce37fbbb entropy.client.interfaces.trigger: move SPM pkg_setup() to separate function
Portage's pkg_setup() was run by both trigger_ebuild_preinstall and
trigger_ebuild_postinstall triggers. So move the code to a stand-alone
function.
2009-04-11 18:17:05 +02:00
Fabio Erculiani 47ec94d4f3 entropy.db: add 'spm_phases' metadatum to getTriggerInfo 2009-04-11 18:04:03 +02:00
Fabio Erculiani 80fccfd1bf entropy.db: update databaseStructureUpdates, make it always creating
the new "source" column on installedtable if the latter is present
2009-04-11 17:54:18 +02:00
Fabio Erculiani ad504754b8 entropy.db: fix typo in createInstalledTable, update SQL table schema 2009-04-11 17:52:57 +02:00
Fabio Erculiani 39e1ae2d91 add support for SPM DEFINED_PHASES metadatum collection
define the metadatum constant in entropy.const and collect it inside
entropy.client.interfaces.metadata.ExtractorsMixin, dictionary key is
'spm_phases'
2009-04-11 17:44:27 +02:00
Fabio Erculiani 35d5b3695a entropy.db: add support for Portage 2.2_rc29 feature "DEFINED_PHASES"
This is a new metadatum which is going to be stored in Portage's vartree
representing the list of defined ebuild phases for the package. For us
it comes into help to choose if to pull up Portage on package install or
not, resulting in a huge speed improvement.

This commit only adds database support, more to come.
2009-04-11 17:39:20 +02:00
Fabio Erculiani 1db528b7c4 entropy.db: improve speed of doesColumnInTableExist 2009-04-11 17:05:01 +02:00
Fabio Erculiani 7a03461cca entropy.client.interfaces.dep: improve performance of calculate_world_updates 2009-04-11 09:38:44 +02:00
Fabio Erculiani 563bbf272e apply ignore-spm-downgrades improvement patch by Mitch Harder. This
helps the Portage compatibility
2009-04-11 09:31:28 +02:00
Fabio Erculiani 2aa800563e entropy.db: retrieveSignatures, fix typo 2009-04-09 14:44:20 +02:00
Fabio Erculiani f0d6d9c3f7 entropy.client.interfaces.fetch: fetch_files_on_mirrors, fix
update_download_list
2009-04-09 12:33:42 +02:00
Fabio Erculiani 60c50bcfbf entropy.tools: fix append_xpak, calling Spm class without a valid
output interface is not valid anymore
2009-04-08 20:59:50 +02:00
Fabio Erculiani 4a12163ab6 entropy.i18n: improve module variables reliability 2009-04-08 16:17:14 +02:00
Fabio Erculiani 283d7c16c4 entropy.client.interfaces: rename all the mixin classes appending "Mixin" 2009-04-08 11:35:38 +02:00
Fabio Erculiani e4f36c46a2 entropy.client.interfaces.methods: fix typo 2009-04-08 05:59:10 +02:00
Fabio Erculiani 3f08b815a9 entropy.client: add preliminary support (not completely implemented on
purpose) to SHA1, SHA256 and SHA512 signatures
2009-04-07 20:50:14 +02:00
Fabio Erculiani b57792e642 entropy.db: optimize doesTableExist method 2009-04-07 17:11:27 +02:00
Fabio Erculiani 7c9c8165f3 entropy.db: add support for package signatures infrastructure (sha1,sha256,sha512)
entropy.client.interfaces.metadata: add sha1, sha256 and sha512 calculators to
metadata extractors
2009-04-07 17:09:43 +02:00
Fabio Erculiani da5f75098c entropy.tools: add sha1 and sha256 functions 2009-04-07 16:36:06 +02:00
Fabio Erculiani d33cfe68e7 entropy.core.SystemSettings: handle EntropyCacher instance to make sure
to have flushed all the cache queue before clearing the related on-disk
files.
2009-04-07 12:18:19 +02:00
Fabio Erculiani e819160698 entropy.client.interfaces.client.Client: call SystemSettings.remove_plugin
on instance destroy()
2009-04-06 22:10:41 +02:00
Fabio Erculiani c9b95aa9f1 entropy.core.SystemSettings: remove debugging output 2009-04-06 22:10:23 +02:00
Fabio Erculiani 2e715f41a5 entropy.client.interfaces.cache.Cache: move clear_dump_cache and
repository_move_clear_cache to entropy.core.SystemSettings

entropy.client.interfaces.Client: create SystemSettings plugin to
push Entropy Client-only metadata into SystemSettings and keep it
agnostic

entropy.core.SystemSettings: now Entropy-free, it's agnostic!

other minor fixes
2009-04-06 21:33:50 +02:00
Fabio Erculiani 5e6b0e791f entropy.services.repository.interfaces.Server: no need to call
SystemSettings.connect_entropy
2009-04-06 21:08:32 +02:00
Fabio Erculiani 5526a8c58b entropy.core.SystemSettings: effectively add plugins handling on the class. 2009-04-06 21:05:30 +02:00
Fabio Erculiani 98d9f51020 entropy.core: new SystemSettingsPlugin class and support on SystemSettings 2009-04-06 21:03:02 +02:00
Fabio Erculiani b14ff89074 entropy.libraries.*: move from etpRepositories to SystemSettings['repositories']['available'] 2009-04-06 20:35:50 +02:00
Fabio Erculiani fced248252 entropy.*: move from using etpRepositoriesExcluded to SystemSettings['repositories']['excluded'] 2009-04-06 19:43:24 +02:00
Fabio Erculiani c69f4b3a9a entropy.tools: move get_repository_settings to entropy.client.interfaces.methods.Methods 2009-04-06 19:38:59 +02:00
Fabio Erculiani a29421f4d7 entropy.core.SystemSettings: there are some parsers that MUST be run
before anything else. So, split the parsing order into two.

entropy.*: move code from etpRepositoriesOrder to SystemSettings['repositories']['order']
2009-04-06 19:20:56 +02:00
Fabio Erculiani 3a571d23b7 entropy.const: fix module loading 2009-04-06 19:03:36 +02:00
Fabio Erculiani 897886f7fe entropy.const: moved all the repositories configuration settings to
SystemSettings, kept etpRepositories, etpRepositoriesOrder, etpRepositoriesExcluded
for backward compability. Did several hopefully last API changes
2009-04-06 19:00:46 +02:00
Fabio Erculiani df0c346beb entropy.server.interfaces.main.Server: use new method set_persistent_setting
to backup the current default repository on backup_entropy_settings
2009-04-06 16:30:14 +02:00
Fabio Erculiani 7707315128 entropy.core.SystemSettings: add two new methods set_persistent_setting,
unset_persistent_setting
2009-04-06 16:27:21 +02:00
Fabio Erculiani f87d691d7b entropy.client.interfaces.methods: backup_setting => backup_constant
API change
2009-04-06 16:17:12 +02:00
Fabio Erculiani 2bace76f40 entropy.core.SystemSettings: restore backed-up settings too 2009-04-06 16:16:49 +02:00
Fabio Erculiani 0f6c704266 entropy.server.interfaces.Server: fix typo 2009-04-06 14:34:17 +02:00
Fabio Erculiani 9e79027d83 entropy.db: add missing module imports 2009-04-06 14:30:21 +02:00
Fabio Erculiani 00396f4bb2 entropy.core: import with_statement from __future__ 2009-04-06 14:29:04 +02:00
Fabio Erculiani 21ff742aed entropy.core.SystemSettings and the rest of the code, use SystemSettings'
rss metadata instead of etpConst['rss*']
2009-04-06 14:20:56 +02:00
Fabio Erculiani d063b87428 entropy.core.SystemSettings and the rest of the code, use SystemSettings'
database format metadatum instead of etpConst['etpdatabasefileformat']
2009-04-06 14:05:57 +02:00