Commit Graph

2218 Commits

Author SHA1 Message Date
lxnay fec51b15ca Entropy/TODO:
- update TODO
Entropy/*:
- QAInterface does not need a full Client interface but just Output
- SecurityInterface: re-add instance validation on constructor


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3136 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-09 11:02:16 +00:00
lxnay 7a57e1db33 Entropy:
- remove all the compat imports
Entropy/Equo:
- move etpExitMessages to equo.py
Entropy/Activator:
- fix import order


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3135 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 23:23:39 +00:00
lxnay ecafddafaf Entropy/etpXpak:
- move etpXpak module under the entropy package


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3130 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 19:34:05 +00:00
lxnay 65a9b5f40e Entropy:
- commenting out other imports from __init__, hopefully the last ones


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3129 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 18:52:28 +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 e1d0688034 Entropy/entropyTools:
- parallelTask: add get_function method


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3127 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 18:29:55 +00:00
lxnay b36745281a Entropy/Client/Interfaces:
- clear_dump_cache: catch OSError exceptions on os.listdir
Entropy:
- remove other secondary imports
Entropy/repository-daemon spec app:
- refresh some code


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3126 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 18:24:06 +00:00
lxnay 3854d3946a Entropy:
- remove unused imports from __init__


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3125 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 17:32:27 +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 1b0435dda9 Entropy:
- remove pyc files accidentally committed


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3122 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 15:25:34 +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 02634d763d Entropy/entropyConstants:
- move etpSQLInit and etpSQLDestroyAll inside EntropySQLSchema class
Entropy/*:
- use the new EntropySQLSchema class
Entropy/RepoInterface:
- fix possible infinite loop on handle_eapi3_database_sync


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3120 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-07 18:32:02 +00:00
lxnay 27ce299438 Entropy/MirrorsServiceInterface:
- _create_metafiles_file: fix not_found_file_list


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3118 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-07 15:47:55 +00:00
lxnay e32acda512 Entropy/MirrorsServiceInterface:
- fix get_files_to_sync to make _create_metafiles_file, the former now returns a complete list of text files regardless their availability


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3117 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-07 15:44:54 +00:00
lxnay 4c6c930138 Entropy/ServerMirrorsInterface:
- _create_metafiles_file: add file containing a list of files not available
Entropy/RepoInterface:
- do_standard_items_download: handle file that contains a list of files not available to avoid trying to fetch them and improve sync speed


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3116 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-07 15:24:07 +00:00
lxnay 656dc92d20 Entropy/entropyTools:
- import tarfile at module level
- new function universal_uncompress


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3115 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-07 15:21:16 +00:00
lxnay b68976aefb Entropy/TODO:
- update TODO
svn ci -m 

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3114 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-06 20:53:52 +00:00
lxnay cc335316b6 Entropy/entropyTools:
- compress_files, new handy function that compresses several files into one (no subdirs handling)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3113 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-06 20:52:52 +00:00
lxnay 757125acf7 Entropy/entropyTools:
- TimeScheduled: optimize __do_delay
Entropy/EntropyCacher:
- stop(): use Thread.join instead of a while loop
Entropy:
- some minor changes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3112 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-05 21:38:23 +00:00
lxnay c3131dbab9 Entropy/TODO:
- update TODO
Entropy/Singleton:
- when an instance is destroyed, do not reuse it and load a new one instead
Entropy/Eqo:
svn ci -m 

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3109 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-05 11:27:47 +00:00
netvandal e54effa2c3 added and index, improved search performance
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3107 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-05 11:00:16 +00:00
lxnay a3250a6248 Entropy/EquoInterface:
- fix package sets dir creation permissions
Entropy/RepoInterface:
- download_item: create destination directory if it doesn't exist


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3105 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-04 08:16:22 +00:00
lxnay dcd2027eaa Entropy/TriggerInterface:
- fix Entropy bash based trigger sandbox interaction


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3103 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-03 12:19:41 +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 291b91eff3 Entropy/TODO:
- update TODO
Entropy/*:
- small code syntax update
Entropy/SystemSocketClientInterface:
- Python 2.6: remove deprecation warning, use ssl module if available and its wrap_socket function instead of socket.ssl


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3095 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-01 14:35:05 +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 85639ba42e Entropy/MultipleUrlFetcher:
- fix download average calculation
Entropy/PackageInterface:
- multi_fetch support: add some metadata to infoDict


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3085 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-01 11:21:10 +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 46d73df488 Entropy/MirrorStatusInterface:
- new class used by EquoInterface, move there some mirror management methods that were in EquoInterface
Entropy/EquoInterface:
- make use of the new MirrorStatusInterface class


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3083 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-28 13:11:52 +00:00
lxnay dc2539f591 Entropy/urlFetcher:
- new methods get_transfer_rate() and is_resumed()
Entropy/MultipleUrlFetcher:
- new methods get_transfer_rate(), get_average() and get_seconds_remaining()
- improved updateProgress method
Entropy/EquoInterface:
- new method fetch_files, similar to fetch_file


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3082 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-28 12:20:46 +00:00
lxnay dc1cf06794 Entropy/SystemSettings:
- now a singleton too, had to reimplement all dict methods since i didn't want to wrap nasty things around the new class
Entropy/*:
- some bug fixes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3081 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-27 19:51:07 +00:00
lxnay 457778fd60 Entropy/*:
- EntropyCacher is singleton, which makes a lot of classes happy


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3080 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-27 18:09:57 +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 94b6aaa422 Entropy/TODO:
- update TODO
Entropy/TriggerInterface:
- complete implementation of bash-based triggers
Entropy/EntropyDatabaseInterface:
- optimize getPackageData and getTriggerInfo
- getTriggerInfo: also provide branch and etp_revision information


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3076 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-25 14:10:01 +00:00
lxnay 764cb47fd0 Entropy/entropyTools:
- force type casting on dict_from_xml_extended

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3075 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-25 12:36:15 +00:00
lxnay b287f7c7b7 Entropy/entropyTools:
- fix dict_from_xml_extended method


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3074 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-25 12:24:40 +00:00
lxnay e7f1dc863e Entropy/TODO:
- update TODO
Entropy/TriggerInterface:
- add support for bash based triggers (preliminary and incomplete)
- provide bash based trigger example


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3073 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-24 21:21:45 +00:00
lxnay f89438f358 Entropy/TriggerInterface:
- syntax updates


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3072 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-23 23:14:09 +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 f1a253e67d Entropy/EquoInterface:
- fetch_file_on_mirrors: when file is not found, do not dump data already downloaded


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3069 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-23 19:27:53 +00:00
lxnay 9fb936d189 Entropy/TODO:
- update TODO
Entropy/EquoInterface:
- fetch_file_on_mirrors: make sure it gives up when no mirrors remain and it is for cycling the last uri


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3067 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-23 18:44:25 +00:00
lxnay d7022d0d6a Entropy/EquoInterface:
- ease the handling of available packages cache


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3066 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-23 16:22:22 +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 68731000d2 Entropy/urlFetcher:
- download: when running in debug mode, print exceptions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3060 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 19:17:37 +00:00
lxnay 183e33e996 Entropy/EquoInterface:
- fetch_file: when running in debug mode, print the exception occured in urlFetcher, if any


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3059 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 19:03:27 +00:00
lxnay 2349b21596 Entropy/UGCClientInterface:
- ease add_download_stats, removing branch and release_string parameters
Entropy/RepositorySocketClientCommands:
- ugc_do_download_stats: make it automatically retreiving branch and release string


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3058 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 18:56:49 +00:00
lxnay 9a82bb2cd8 Entropy/DistributionUGCInterface:
- get_entropy_release_strings_id: fix another typo


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3057 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 18:37:26 +00:00
lxnay 3b81ecbacb Entropy/DistributionUGCInterface:
- fix do_download_stats, wrong variable reference


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3056 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 18:34:45 +00:00
lxnay 5f21d3d658 Entropy/DistributionUGCInterface:
- fix is_user_ip_available_in_entropy_distribution_usage SQL query


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3055 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-22 18:32:17 +00:00