Commit Graph

430 Commits

Author SHA1 Message Date
Fabio Erculiani
28deb817ad Spritz: when saving preferences, reset all caches and close all databases
This avoids having unitialized repository metadata around (in SystemSettings)
like in configprotect and configprotectmask
2009-04-14 22:57:04 +02:00
Fabio Erculiani
bf9ac1a287 entropy.*: move from etpRepositories to SystemSettings['repositories']['available'] 2009-04-06 20:35:02 +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
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
d807bad859 move Entropy client settings storage and parsing to SystemSettings 2009-04-05 16:32:20 +02:00
Fabio Erculiani
2dd77a30a8 etpConst['equoconf'] => etpConst['clientconf'] 2009-04-05 13:45:05 +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
563d1453cb adapt other makefiles to work with Entropy one 2009-04-02 14:21:48 +02:00
Fabio Erculiani
1f1adabe88 removed unused spritz files 2009-04-02 14:21:02 +02:00
Fabio Erculiani
4b471091e3 Spritz: remove pdb from code 2009-04-01 11:59:33 +02:00
Fabio Erculiani
aac6fa8b38 Spritz: add support for package install source. 2009-04-01 00:19:05 +02:00
lxnay
33c43e13b7 Entropy/Spritz:
- const_extractClientRepositoryParameters is not available anymore, use const_extract_cli_repo_params


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3213 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-21 18:53:52 +00:00
lxnay
d62e1f3532 Entropy/Spritz:
- const_extractClientRepositoryParameters is not available anymore, use const_extract_client_repo_params


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3212 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-21 18:52:35 +00:00
lxnay
379fd59ac3 Entropy/dump:
- slightly change API
- add missing docstrings
- pylint check passed
Entropy/*:
- fix API changed entropy.dump function calls


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3210 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-20 11:42:43 +00:00
lxnay
f4c26812b9 Entropy/const:
- update constants function API
Entropy/Spritz:
- use new entropy.const API


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3207 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-19 11:09:33 +00:00
lxnay
3136c25db3 Entropy/*:
- use save_repository_settings instead of saveRepositorySettings function (deprecated)
- use _save_repositories_content instead of _saveRepositoriesContent function (deprecated)
- use write_parameter_to_file instead of writeParameterToFile function (deprecated)
- use write_new_branch instead of writeNewBranch function (deprecated)
- use is_entropy_package_file instead of isEntropyTbz2 function (deprecated)
- use collect_linker_paths instead of collectLinkerPaths function (deprecated)
- use collect_paths instead of collectPaths function (deprecated)
- use list_to_utf8 instead of listToUtf8 function (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3188 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 13:49:53 +00:00
lxnay
97590a6cad Entropy/*:
- use spawn_function instead of spawnFunction function (deprecated)
- use uncompress_tar_bz2 instead of uncompressTarBz2 function (deprecated)
- use bytes_into_human instead of bytesIntoHuman function (deprecated)
- use hide_ftp_password instead of hideFTPpassword function (deprecated)
- use get_file_unix_mtime instead of getFileUnixMtime function (deprecated)
- use get_random_temp_file instead of getRandomTempFile function (deprecated)
- use get_file_timestamp instead of getFileTimeStamp function (deprecated)
- use convert_unix_time_to_human_time instead of convertUnixTimeToHumanTime function (deprecated)
- use get_current_unix_time instead of getCurrentUnixTime function (deprecated)
- use get_year instead of getYear function (deprecated)
- use convert_seconds_to_fancy_output instead of convertSecondsToFancyOutput function (deprecated)
- use get_repository_settings instead of getRepositorySettings function (deprecated)
- use write_ordered_repositories_entries instead of writeOrderedRepositoriesEntries function (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3187 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 13:45:55 +00:00
lxnay
fac809a8d5 Entropy/*:
- use print_traceback instead of printTraceback function (deprecated)
- use get_traceback instead of getTraceback function (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3182 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 12:16:09 +00:00
lxnay
aeee2d2b22 Entropy/*:
- use print_traceback instead of printTraceback function (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3181 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 12:14:50 +00:00
lxnay
a4d8f35dd2 Entropy/Spritz:
- dialogs, add missing module import


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3168 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-14 16:19:53 +00:00
lxnay
85b16445a0 Entropy/Entropy Notification Applet/Spritz:
- when subclassing entropy.client.interfaces.Client reimplement init_singleton instead of __init__ because the former is now a Singleton


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3163 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-14 15:37:00 +00:00
lxnay
d4d0ecbaec Entropy/Spritz:
- fix typo


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3156 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-12 20:14:02 +00:00
lxnay
3a97fc8c8b Entropy/Client/Interface:
- split Client class into single ones
- deprecated camelCase methods
- remove a few, unused or useless
Entropy/docs:
- update APICHANGES
Entropy/*:
- adapt the code to work with non-deprecated methods


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3154 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-12 19:18:27 +00:00
lxnay
d7151b6555 Entropy/*:
- update module imports to reflect the new entropy package structure
Entropy/Client/Interfaces/Package:
- fixed sources_fetch_step source packages download


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3150 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-11 09:36:47 +00:00
lxnay
11a5aeb55c Entropy:
- comment out another set of imports
Entropy/Spritz:
- improve thread shutdown
Entropy/entropy-repository-daemon:
- update threads handling code


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3128 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 18:48:31 +00:00
lxnay
83e184fc5e Entropy/*:
- make use of the new entropy package structure


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3123 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 15:49:55 +00:00
lxnay
715421089b Entropy/MELTDOWN :-):
- entropy modules is now a python package, kept backward compatibility for now


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3121 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 15:24:30 +00:00
lxnay
d4cd836ac4 Entropy/Spritz:
- update Spritz copyright year on About


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3119 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-07 18:30:26 +00:00
lxnay
3df27f7c18 Entropy/FtpInterface (usage):
- raise exceptionTools.ConnectionError when needed and catch it
Entropy/Spritz:
- Equo interface, check if progressLog variable exists


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3099 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-02 12:08:34 +00:00
lxnay
1653563534 Entropy/Spritz:
- missing QueueExecutor import


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3092 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-01 13:14:44 +00:00
lxnay
713ec7d866 Entropy/Spritz:
- fix UI updates during updateRepositories


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3091 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-01 13:10:20 +00:00
lxnay
e960e4afd5 Entropy/entropyTools:
- TimeScheduled: disable accuracy by default
Entropy/Spritz:
- better handle Repositories Updates UI refresh
Entropy/TODO:
- update TODO


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3090 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-01 12:48:27 +00:00
lxnay
349b164f7b Entropy/TODO:
- update TODO
Entropy/Spritz:
- wait for UGC to close cleanly
Entropy/entropyConstants:
- const_kill_threads: wait for threads to close cleanly
Entropy/MultipleUrlFetcher:
- beautify output
Entropy/EntropyCacher:
- on stop() wait for CacheWriter to close cleanly
Entropy/EquoInterface:
- fetch_files: minor updates and fixes
- fetch_files_on_mirrors: new method, that mimics the behaviour of fetch_file_on_mirrors but using MultipleUrlFetcher
- fetch_file_on_mirrors: some fixes
Entropy/PackageInterface:
- implement multi_fetch action
- match_checksum: update method adding arguments to ease code reuse
- new methods multi_match_checksum and multi_fetch_step
- new method multi_checksum_step


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3084 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-28 22:10:54 +00:00
lxnay
aefb63a7a3 Entropy/TODO:
- update TODO
Entropy/EquoInterface/ServerInterface:
- they are now singleton, which is a big leap ahead in terms of ease of use
Entropy/Equo/Server:
- text_query, server_query: adapt code to better with singleton EquoInterface/ServerInterface instances
Entropy/Spritz:
- EquoInterface is now singleton, no need to load a global variable
Entropy/urlFetcher:
- add thread_stop_func, speed_limit, OutputInterface parameters to ease behaviour customization
- rename __setup_proxy (private) to _setup_proxy
- add set_id method, useful for thread identification when running multiple instances of urlFetcher
- close() is now a private method
- added thread_stop_func handling, used to stop fetches from other threads
- commit() is now a private method
- add handle_statistics method, if reimplemented, it's handy for controlling dataflow from other threads
Entropy/entropy.py:
- remove some unused functions imported from outputTools
Entropy/EntropyCacher:
- EntropyCacher is now singleton too
Entropy/MultipleUrlFetcher:
- base class that mimics the behaviour of urlFetcher adding the support for multiple simultaneous downloads
Entropy/entropyTools:
- improve xml_from_dict_extended and dict_from_xml_extended functions (add support for None types)
Entropy/entropy.sh:
- pre-declare public functions (pkg_*)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3078 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-27 17:59:34 +00:00
lxnay
40caacd0fb Entropy/entropyTools/*:
- new version of parallelTask, API changes, update every part of the code that uses it


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3071 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-23 22:56:54 +00:00
lxnay
14134e7007 Entropy/entropyTools/*:
- new version of TimeScheduled, API changes, update every part of the code that uses it


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3070 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-23 22:50:34 +00:00
lxnay
bb724a8cd9 Entropy/Spritz:
- fix remove option on Updates tab


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3065 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-23 16:14:28 +00:00
lxnay
d6df167385 Entropy/Clients:
- spawn add_download_stats instead of add_downloads


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3064 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-23 08:32:39 +00:00
lxnay
771d0d679e Entropy/Spritz:
- update desktop file


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3063 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-23 08:28:00 +00:00
lxnay
9138d410a9 Entropy/*:
- random trivial fixes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3062 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 23:49:06 +00:00
lxnay
4629810b63 Entropy/urlFetcher:
- add a new error status "-4", meaning timeout error, move KeyboardInterrupt error code to -100
Entropy/EquoInterface:
- properly handle timeout errors without discarding data downloaded until then


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3061 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 19:46:52 +00:00
lxnay
dd9864e06d Entropy/Spritz:
- fix SystemSettings call, scan is no more exported, use clear() instead


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3052 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 17:35:57 +00:00
lxnay
028910d672 Entropy/Spritz:
- package searches are now case-insensitive


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3027 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-15 22:01:30 +00:00
lxnay
dd743eadc1 Entropy/Spritz:
- add support for ChangeLog visualization in package properties window
Entropy/Equo/Server:
- add changelog query support
Entropy/TODO:
- update TODO


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3019 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-14 14:42:40 +00:00
lxnay
ec168afc1d Entropy/EquoInterface:
- rename some methods, we are entering in a final stabilization process
Entropy/TODO:
- update TODO


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3017 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-11 19:21:03 +00:00
lxnay
cb509f5d42 Entropy/TODO:
- update TODO
Entropy/PackageInterface:
- call preinstall step before preremove and postremove on install actions
Entropy/client:
- move repositories.conf to repositories.conf.example
Entropy:
- use /usr/bin/python2 instead of /usr/bin/python as interpreter to avoid Python 3 issues


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2996 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 12:17:27 +00:00
lxnay
b76740d612 Entropy/Spritz:
- split colours settings tab into two separate


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2983 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-03 08:14:07 +00:00
lxnay
79fd89d59a Entropy/Spritz:
- fix packages removal handling when cancel button is pressed on packages removal validation

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2981 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-02 17:05:06 +00:00