Commit Graph

4725 Commits

Author SHA1 Message Date
Fabio Erculiani
ea63fe2b16 [entropy.db] improve reliability of contentDiff(), generating random temp. table in a smarter way 2010-10-03 15:48:48 +02:00
Fabio Erculiani
440f379966 [entropy.db] EntropyRepository(Base): importRepository is now a static method 2010-10-03 14:28:12 +02:00
Fabio Erculiani
2a531dd014 [entropy.db] introduce SQL schema changes in EntropyRepository (small API break)
New SQL schema changes have been introduced to EntropyRepository,
keeping them disabled by default (older Entropy client have to be
flushed out first). The aim is to improve performance avoiding
extra SQL joins on baseinfo and extrainfo tables, thus removing
"categories", "flags", "licenses" tables (which missed external
keys also).
This upgrade is completely backward compatible and new schema is detected
at runtime, so the whole class can work with old and new one transparently.
The downside is that listPackageIdsInCategoryId() is no longer available and
has been replaced by a more generic listPackageIdsInCategory().
This new SQL schema will be hopefully enabled before the end of 2011.
2010-10-03 11:33:16 +02:00
Fabio Erculiani
770721dae4 [tests] add EntropyRepository.getSetting() test 2010-09-29 20:51:28 +02:00
Fabio Erculiani
bd9b4a9000 [entropy.db] EntropyRepository: fix schema_revision comparison in _databaseStructureUpdates 2010-09-29 20:49:38 +02:00
Fabio Erculiani
9adc3fff28 [entropy.db] EntropyRepository: run schema update routines only when schema_revision stored in db differs from the one stored in the class obj. 2010-09-29 20:35:43 +02:00
Fabio Erculiani
a42c9c72ed [entropy.db] raise KeyError exception the new way 2010-09-29 20:25:41 +02:00
Fabio Erculiani
2531888516 [entropy.db] deprecate EntropyRepositoryBase.commitChanges() in favour of commit() 2010-09-28 11:13:12 +02:00
Fabio Erculiani
7734745bce Revert "[entropy.server] sync package sets at every commit hook (to avoid unaligned data)"
This reverts commit ab16a7e6d7.
2010-09-28 09:52:20 +02:00
Fabio Erculiani
4aad2397a5 [entropy.db] EntropyRepository: make _migrateCountersTable() atomic 2010-09-28 09:36:25 +02:00
Fabio Erculiani
41deaba72c [entropy.spm] remove environment_update() arguments, unwanted. 2010-09-27 21:35:29 +02:00
Fabio Erculiani
5d4f7c18eb [entropy.client.interface.methods] optimize reorder_mirrors() do not execute ping test function on the same mirror more than once 2010-09-27 21:34:30 +02:00
Fabio Erculiani
935122ee08 [entropy.fetchers] raise InterruptError exception the right way 2010-09-27 21:00:07 +02:00
Fabio Erculiani
57e10c23c7 [entropy.server] show package sets information after having updated package sets metadata 2010-09-27 18:52:40 +02:00
Fabio Erculiani
ab16a7e6d7 [entropy.server] sync package sets at every commit hook (to avoid unaligned data) 2010-09-27 18:28:06 +02:00
Fabio Erculiani
81f0b3fd44 [entropy.const] when filesystem encoding is not UTF-8, die prematurely. 2010-09-26 14:54:50 +02:00
Fabio Erculiani
92493da55f Tagging Entropy version 0.99.50.2 2010-09-26 00:40:04 +02:00
Fabio Erculiani
995a172fed [entropy.spm] PortagePlugin: directly use "repository" metadatum from xpak data 2010-09-25 18:23:27 +02:00
Fabio Erculiani
9d2646a6a6 [entropy.spm] PortagePlugin: make Portage able to show repository information while executing phases 2010-09-25 17:46:33 +02:00
Fabio Erculiani
8783da63c7 [entropy.client.interfaces.package] add "spm_repository" metadatum to trigger metadata that is passed to the "SPM" plugin
In this way, SPM (Portage, for eg.) can show information related
to the nature of packages it works out.
2010-09-25 17:44:47 +02:00
Fabio Erculiani
8aabd456a8 Tagging Entropy version 0.99.50.1 2010-09-25 13:53:24 +02:00
Fabio Erculiani
348787d3e9 [entropy.spm] PortagePlugin: do not try to repackage packages no longer available in the installed system 2010-09-25 13:52:39 +02:00
Fabio Erculiani
94d178794f [entropy.tools] fix print_exception(), do not add the last stack frame twice if all_frame_data = True 2010-09-25 12:51:56 +02:00
Fabio Erculiani
536dab753c [entropy.client.interfaces.methods] in Client._validate_repositories(), also print the validation error object 2010-09-25 12:08:09 +02:00
Fabio Erculiani
a55ada4fca [tests] when calling Client.shutdown(), SystemSettings plugins are not removed now, so tests require to call destroy() first, then shutdown() 2010-09-25 12:05:57 +02:00
Fabio Erculiani
3c6f504e45 [entropy.spm] PortagePlugin: support package license text retrieval from overlays 2010-09-25 11:51:48 +02:00
Fabio Erculiani
ef13d28e68 [entropy.server] add _from_shutdown argument to Server.destroy() 2010-09-25 11:51:13 +02:00
Fabio Erculiani
844e13011d Tagging Entropy version 0.99.50 2010-09-25 09:05:21 +02:00
Fabio Erculiani
14ba276e37 Tagging Entropy version 0.99.49.76 2010-09-24 20:18:29 +02:00
Fabio Erculiani
9cb13f6aef Tagging Entropy version 0.99.49.75 2010-09-24 20:18:18 +02:00
Fabio Erculiani
c2e7f3b51b [entropy.db] EntropyRepository: small sqlite3 performance improvement, make it store temp tables in RAM 2010-09-24 14:27:59 +02:00
Fabio Erculiani
32c887e298 Tagging Entropy version 0.99.49.74 2010-09-24 14:26:50 +02:00
Fabio Erculiani
9853d41702 [entropy.db] EntropyRepository: fix performance regression, previous code was 10 times slower 2010-09-24 14:02:06 +02:00
Fabio Erculiani
fbbeeecf80 [entropy.client.interfaces.client] improve speed of Client.shutdown() by not touching SystemSettings plugin (see rational in code) 2010-09-24 13:33:19 +02:00
Fabio Erculiani
6cdd268dfb [entropy.server.interfaces.mirrors] fix regression in handling repository dump (light version) 2010-09-24 13:27:30 +02:00
Fabio Erculiani
4eaba54c38 [entropy.client.interfaces.db] replace "database" with "repository" in messages 2010-09-24 13:12:42 +02:00
Fabio Erculiani
a722e014cc Tagging Entropy version 0.99.49.73 2010-09-24 11:36:17 +02:00
Fabio Erculiani
40d12de843 Tagging Entropy version 0.99.49.72 2010-09-23 19:03:20 +02:00
Fabio Erculiani
8acc959842 [entropy.spm] PortagePlugin: fix undefined reference 2010-09-23 19:02:59 +02:00
Fabio Erculiani
acb355d906 Tagging Entropy version 0.99.49.71 2010-09-23 18:45:52 +02:00
Fabio Erculiani
20a1de45ce [entropy.spm] PortagePlugin: support per repository profiles/updates 2010-09-23 18:45:14 +02:00
Fabio Erculiani
32f251feae [entropy.db] EntropyRepository.createAllIndexes: call "ANALYZE" stmt after indexes creation 2010-09-22 20:29:33 +02:00
Fabio Erculiani
e62859c6e1 [entropy.db] EntropyRepository: convert remaining closeDB() calls to close() 2010-09-22 20:14:28 +02:00
Fabio Erculiani
caff8cc759 [entropy.db] rename EntropyRepositoryBase.closeDB() to EntropyRepositoryBase.close() keeping backward compatibility 2010-09-21 14:03:44 +02:00
Fabio Erculiani
5b8fd5e28b [entropy.spm] PortagePlugin.package_names_update: make it work using portage tree from CVS 2010-09-18 14:19:35 +02:00
Fabio Erculiani
33fe258b4a [entropy.server] do not use EntropyRepository private implementation information, but rather provide a much cleaner implementation of
_upload_database
2010-09-17 01:08:14 +02:00
Fabio Erculiani
7864e6a554 Tagging Entropy version 0.99.49.70 2010-09-16 09:22:17 +02:00
Fabio Erculiani
04640671af [entropy.spm] PortagePlugin: update builtin package sets list 2010-09-16 09:21:18 +02:00
Fabio Erculiani
02e07aea6b [entropy.server] Server: remove bogus line in ServerFakeClientSystemSettingsPlugin.fake_cli_parser 2010-09-16 09:15:41 +02:00
Fabio Erculiani
dc422b4774 [entropy.server] Server: remove bogus line in ServerFakeClientSystemSettingsPlugin.fake_cli_parser 2010-09-16 09:14:39 +02:00