Commit Graph

2218 Commits

Author SHA1 Message Date
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
Fabio Erculiani 50641f8041 entropy.client.interfaces.trigger.Trigger: fix last typo 2009-04-04 16:04:09 +02:00
Fabio Erculiani 4850ee589e entropy.services.interfaces: import used output modules 2009-04-04 16:02:41 +02:00
Fabio Erculiani 7797e5d52c entropy.client.interfaces.trigger.Trigger: fix variable name typos 2009-04-04 16:01:56 +02:00
Fabio Erculiani 268e362a35 entropy.output: remove color function auto-generation through setattr
and declare them *statically* instead
2009-04-04 15:55:25 +02:00
Fabio Erculiani f09e65ccff entropy.tools: drop support for legacy imports in module
(TimeScheduled, lifobuffer, etc)
2009-04-03 20:07:48 +02:00
Fabio Erculiani f550665605 Entropy: move entropy.conf parsing into SystemSettings Singleton
class.

As announced, SystemSettings is going to host all the Entropy
global variables. With this big commit, proxy config (and the rest
of entropy.conf data) has been moved under SystemSettings['system']
2009-04-03 20:06:07 +02:00
Fabio Erculiani e110e10624 entropy.services.repository.interfaces.Server: port to new SystemSettings
API.
2009-04-03 15:31:35 +02:00
Fabio Erculiani 4ead63ee56 entropy.client.interfaces.methods.Repository: make sure that SystemSettings
are reloaded after every reopen_client_repository call
2009-04-03 15:29:47 +02:00
Fabio Erculiani 8e583db91d entropy.client.interfaces.client.Client: port Client class to new
SystemSettings API, make sure to connect itself AFTER client db
instantiation.
2009-04-03 15:28:49 +02:00
Fabio Erculiani f0f2b3c0e5 entropy.core.SystemSettings: always reload settings when connect_entropy
is called.
2009-04-03 15:27:31 +02:00
Fabio Erculiani 96e9b52fd9 entropy.core.SystemSettings: change constructor arguments (break API)
SystemSettings can have issues with destroyed entropy instances since
it's a Singleton. Remove the argument from the constructor and add
connect_entropy method
2009-04-03 15:10:14 +02:00
Fabio Erculiani b2868c34af entropy.services.interfaces.SocketHost: pull socket settings from
SystemSettings
2009-04-03 15:05:33 +02:00
Fabio Erculiani 3b0d09555b entropy.services.repository.interfaces.Client: use SystemSettings
for socket configuration
2009-04-03 13:58:22 +02:00
Fabio Erculiani 6899aa87c2 entropy.const: remove socket service settings parsing from here, just keep
the constants.
2009-04-03 13:45:15 +02:00
Fabio Erculiani 800fa6ac2a entropy.core.SystemSettings: make SystemSettings usable without
entropy.client.interfaces.Client instance. Copy socket service
settings into it (parsing in entropy.const will be removed very
soon)
2009-04-03 13:43:29 +02:00
Fabio Erculiani b4a8dbc53d entropy.core.SystemSettings: rename __setting_files to __settings 2009-04-03 13:11:29 +02:00
Fabio Erculiani 16bff5ab54 entropy.const: remove old comment (trivial) 2009-04-03 13:09:33 +02:00
Fabio Erculiani 3e4c299478 entropy.spm entropy.client.interfaces.methods: remove unused variables 2009-04-02 20:38:41 +02:00
Fabio Erculiani 72861f9b93 entropy.tools.uncompress_tar_bz2: add FIXME 2009-04-02 20:38:09 +02:00
Fabio Erculiani 62f09809ed entropy.db.regenerateDependsTable: when running with output = True,
print output every 150 iterations and don't spam the terminal
2009-04-02 20:37:02 +02:00
Fabio Erculiani a2a4c3dd2e entropy.client.interfaces.methods.quickpkg_handler: no need to specify
user and group name bits
2009-04-02 19:58:31 +02:00
Fabio Erculiani cd2b581c5c entropy.spm.quickpkg: no need to specify user and group name bits 2009-04-02 19:57:45 +02:00
Fabio Erculiani 2c0fa8fe68 entropy.client.interfaces.methods.quickpkg_handler: apply the same
fix of entropy.spm.quickpkg, properly store username and group bits
inside the tar file when possible.
2009-04-02 19:05:54 +02:00
Fabio Erculiani 98e046e725 entropy.spm.quickpkg: remove debugging output 2009-04-02 19:03:45 +02:00
Fabio Erculiani ae4fa2db7c entropy.spm.quickpkg: properly set username and group bits in tar files 2009-04-02 19:01:24 +02:00
Fabio Erculiani 3c6e229976 entropy.tools: fix typo in new function 2009-04-02 19:00:16 +02:00
Fabio Erculiani 2942ee3009 entropy.tools: new functions get_user_from_uid and get_group_from_gid 2009-04-02 18:54:00 +02:00
Fabio Erculiani 426addf3b4 entropy.tools: new functions get_uid_from_user and get_gid_from_user,
use them when tarinfo is used to extract tar files with proper uname
and gname bits
2009-04-02 18:45:34 +02:00