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']
functions inside text_query are now following Python guidelines.
Update the rest of the code accordingly.
On a side effect, printPackageInfo (now print_package_info) is
now 2.5 times faster on standard print
text_query code was a bit outdated, unused arguments have been removed,
searchInstalled speed has been greatly improved (equo query orphans),
output usability has been improved (printPackageInfo)
- 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
- 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
- use compare_versions instead of compareVersions function (deprecated)
- use entropy_compare_versions instead of entropyCompareVersions function (deprecated)
- use get_newer_version instead of getNewerVersion function (deprecated)
- use get_entropy_newer_version instead of getEntropyNewerVersion function (deprecated)
- use filter_duplicated_entries instead of filterDuplicatedEntries function (deprecated)
- use extract_ftp_host_from_uri instead of extractFTPHostFromUri function (deprecated)
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3186 cd1c1023-2f26-0410-ae45-c471fc1f0318
- use extract_xpak instead of extractXpak function (deprecated)
- use read_xpak instead of read_xpak function (deprecated)
- use backup_client_repository instead of backupClientDatabase (deprecated)
- use unpack_bzip2 instead of unpackBzip2 (deprecated)
- use unpack_gzip instead of unpackGzip (deprecated)
- use unpack_xpak instead of unpackXpak (deprecated)
- use suck_xpak instead of suckXpak (deprecated)
- use append_xpak instead of appendXpak (deprecated)
- use aggregate_edb instead of aggregateEdb (deprecated)
- use extract_edb instead of extractEdb (deprecated)
- use remove_edb instead of removeEdb (deprecated)
- use create_hash_file instead of createHashFile (deprecated)
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3184 cd1c1023-2f26-0410-ae45-c471fc1f0318
- use print_exception instead of printException function (deprecated)
- use application_lock_check instead of applicationLockCheck function (deprecated)
- use get_random_number instead of getRandomNumber function (deprecated)
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3183 cd1c1023-2f26-0410-ae45-c471fc1f0318
- 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
- update TODO
Entropy/Core/Cache:
- EntropyCacher, fix stop(), non-working hasattr calls due to private class attributes
Entropy/Core:
- Singleton, delete object reference if instance has been destroyed
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3139 cd1c1023-2f26-0410-ae45-c471fc1f0318
- 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
- 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
- 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
- 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