Commit Graph

2194 Commits

Author SHA1 Message Date
Fabio Erculiani d79b2e494b entropy.client.interfaces.metadata: extract_pkg_metadata, fix changelog
metadatum must be unicode() and not str(). Moreover, print warning
on Unicode conversion errors.
2009-04-16 06:36:43 +02:00
Fabio Erculiani 8b961e23ca entropy.db: insertSignatures, fix insertion.
signatures is not a list but a dict now.
2009-04-16 06:30:22 +02:00
Fabio Erculiani fa2b4a79f1 entropy.db: addPackage, always accept spm_phases when it's != None 2009-04-16 06:29:31 +02:00
Fabio Erculiani 878dfda4e4 entropy.client.interfaces.metadata: extract_pkg_metadata, etpapi metadatum must be int(), as returned by entropy.db.getPackageData 2009-04-16 06:24:46 +02:00
Fabio Erculiani 81900d5913 entropy.client.interfaces.metadata: extract_pkg_metadata, sources metadatum must be a set(), as returned by entropy.db.getPackageData 2009-04-16 06:24:29 +02:00
Fabio Erculiani 24adfb012a entropy.client.interfaces.metadata: extract_pkg_metadata, eclasses metadatum must be a set(), as returned by entropy.db.getPackageData 2009-04-16 06:22:36 +02:00
Fabio Erculiani ee363147c7 entropy.client.interfaces.metadata: extract_pkg_metadata, useflags metadatum must be a set(), as returned by entropy.db.getPackageData 2009-04-16 06:21:40 +02:00
Fabio Erculiani beba5d5c2f entropy.client.interfaces.metadata: extract_pkg_metadata, keywords
metadatum must be a set(), as returned by entropy.db.getPackageData
2009-04-16 06:19:01 +02:00
Fabio Erculiani 6d8d3e48f6 entropy.client.interfaces.metadata: extract_pkg_metadata
conflicts metadatum must be a set, as returned by entropy.db.getPackageData
2009-04-16 06:16:27 +02:00
Fabio Erculiani 55c2293b98 entropy.client.interfaces.metadata: extract_pkg_metadata, 'spm_phases'
metadatum can be None if SPM one is not found/available.
2009-04-16 06:11:42 +02:00
Fabio Erculiani 13bbcad92e entropy.db: addPackage should add 'atom' metadatum to returning metadata 2009-04-16 06:06:19 +02:00
Fabio Erculiani 0834281bd1 entropy.client.interfaces.metadata: extract_pkg_metadata, 'provide'
metadatum must be set() and not list()
2009-04-16 06:05:32 +02:00
Fabio Erculiani 105776c26c test suite: add sample package 2009-04-16 06:05:05 +02:00
Fabio Erculiani d5b564d271 test suite: add misc functions module 2009-04-16 06:04:33 +02:00
Fabio Erculiani 1f4fb7b243 SystemSettings: make it working on readonly filesystems too 2009-04-15 16:12:12 +02:00
Fabio Erculiani cd3eeba238 ClientSystemSettingsPlugin: keep repository metadata inside SystemSettings
always ready to use.
2009-04-14 23:50:37 +02:00
Fabio Erculiani 670be42e8d entropy.client.interfaces.methods: new method is_repository_connection_cached 2009-04-14 23:48:10 +02:00
Fabio Erculiani 62ec9712b9 entropy.client.interfaces.methods: open_repository, remove t_ident
usage
2009-04-14 23:46:58 +02:00
Fabio Erculiani 5bd8daa754 entropy.client.interfaces.methods: put back repository config protect
setup into load_repository_database. a more permanent fix will follow
shortly.
2009-04-14 23:44:46 +02:00
Fabio Erculiani f4a7b8a97f entropy.client.interfaces.methods: clear SystemSettings and reset
repository cache properly every time is needed
2009-04-14 23:21:40 +02:00
Fabio Erculiani 9bd552689e entropy: when entropy.client.interfaces.methods' reopen_client_repository
is called, make sure all the repository databases are closed
2009-04-14 23:15:12 +02:00
Fabio Erculiani 8086f42e62 entropy.client.interfaces.package: small syntax style update 2009-04-14 23:01:55 +02:00
Fabio Erculiani 3572a0f224 entropy.client.interfaces.methods: improve open_repository reliability
When calling open_repository on an already loaded database instance when
SystemSettings.clear() was called, it could happen to have unitialized
metadata around (configprotect and configprotectmask), so always check this
2009-04-14 22:59:14 +02:00
Fabio Erculiani f944343275 unit testing module: run returns status != 0 if errors occured 2009-04-14 09:04:14 +02:00
Fabio Erculiani 3185cdf8d4 unit testing: print more output for each test run 2009-04-13 23:36:03 +02:00
Fabio Erculiani 8ac1b1ea85 add unit testing module 2009-04-13 23:32:41 +02:00
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