Commit Graph

2146 Commits

Author SHA1 Message Date
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
Fabio Erculiani 72cbbe7cbc entropy.core.SystemSettings and the rest of the code, use SystemSettings'
packages expiration days metadatum instead of etpConst['packagesexpirationdays']
2009-04-06 14:03:29 +02:00
Fabio Erculiani 2117b3a36b entropy.core.SystemSettings and the rest of the code, use SystemSettings'
official repository id metadatum instead of etpConst['officialserverrepositoryid']
2009-04-06 14:02:01 +02:00
Fabio Erculiani 597ceabb73 entropy.const: move server-side environment variables override to
SystemSettings' server_parser(), remove const_setup_environment
2009-04-06 13:47:53 +02:00
Fabio Erculiani 0453fb370b entropy.core.SystemSettings and the rest of the code, use SystemSettings'
server branches instead of etpConst['branches']
2009-04-06 13:44:21 +02:00
Fabio Erculiani 8e4111f492 entropy.core.SystemSettings and the rest of the code, use SystemSettings'
server repositories metadata instead of etpConst['server_repositories']
2009-04-06 13:41:38 +02:00
Fabio Erculiani fa08b99ba1 entropy.client.interfaces.client.Client: on destroy() call SystemSettings'
disconnect_entropy method instead of destroy
2009-04-06 13:37:09 +02:00
Fabio Erculiani cdfa67f85a entropy.core.SystemSettings: new method "disconnect_entropy", removes
the Entropy instance from database
2009-04-06 13:35:56 +02:00
Fabio Erculiani 4ad7aa7556 entropy.core.SystemSettings: add support for Entropy Client method
backup_setting
2009-04-06 13:35:21 +02:00
Fabio Erculiani b35ad4587f entropy.const, entropy.core, entropy.server.interfaces.main: move
server-side settings to SystemSettings. Server interface is not
making use of it yet.
2009-04-06 13:34:12 +02:00
Fabio Erculiani d43d3b89eb entropy.client.interfaces.methods.Misc: backup_setting, add FIXME 2009-04-06 13:17:49 +02:00
Fabio Erculiani d61ba8bae2 entropy.client.interfaces.methods.Misc: update backup_setting to work
with SystemSettings too
2009-04-06 13:11:48 +02:00
Fabio Erculiani d807bad859 move Entropy client settings storage and parsing to SystemSettings 2009-04-05 16:32:20 +02:00
Fabio Erculiani b935582f6d entropy.const: const_read_equo_settings removed, parser is being moved
to SystemSettings
2009-04-05 13:51:17 +02:00
Fabio Erculiani 138e41bcf1 entropy.const: initconfig_client_constants does not exist anymore,
there is no need for it since client config is going to be moved to
SystemSettings
2009-04-05 13:48:45 +02:00
Fabio Erculiani 2dd77a30a8 etpConst['equoconf'] => etpConst['clientconf'] 2009-04-05 13:45:05 +02:00
Fabio Erculiani 6bfd50eece equo.conf => client.conf in code comments 2009-04-05 09:47:31 +02:00
Fabio Erculiani a3c2fbc285 rename equo.conf to client.conf 2009-04-05 09:34:02 +02:00
Fabio Erculiani be2bb748d3 entropy.core.SystemSettings: optimize system_parser and socket_parser
methods
2009-04-05 09:31:37 +02:00
Fabio Erculiani b35bc947e4 entropy.tools: API change, rename create_hash_file to create_md5_file 2009-04-04 18:22:11 +02:00
Fabio Erculiani e4b001d8b8 etpConst['packageshashfileext'] => etpConst['packagesmd5fileext'] 2009-04-04 18:19:42 +02:00
Fabio Erculiani a02e522eb8 entropy.tools: new SHA512 functions
In the aim of adding preliminary support to SHA512, three functions
have been created:

- sha512: returns a SHA512 file checksum
- create_sha512_file: it creates a .sha512 hash file
- compare_sha512: compare sha512 checksum of filepath with the one
provided
2009-04-04 18:10:16 +02:00
Fabio Erculiani 4737ee4882 entropy.const: add sha512 hash file extension constant 2009-04-04 18:00:46 +02:00