Commit Graph

656 Commits

Author SHA1 Message Date
Fabio Erculiani
0c5c9879ba entropy.client: move SystemSettings client parser to ClientSystemSettingsPlugin 2009-04-19 19:50:28 +02:00
Fabio Erculiani
4e52998840 text_ui: branchHop: adjust return error codes 2009-04-18 19:04:17 +02:00
Fabio Erculiani
515b897500 text_ui: equo hop, disable branchHop access for non-root users 2009-04-18 19:03:39 +02:00
Fabio Erculiani
78d6b98a99 equo: fix typo in equo.py, properly destroy Client instance 2009-04-18 08:17:14 +02:00
Fabio Erculiani
36537f39a0 equo: implement new command 'equo hop' which substitutes 'equo world
--upgrade <branch>'
2009-04-17 23:47:33 +02:00
Fabio Erculiani
6b7ca12957 equo: remove 'equo world --upgrade' option, will be moved to 'equo hop' 2009-04-17 16:01:31 +02:00
Fabio Erculiani
e12d40c246 equo world: do not run orphans search when running with --fetch 2009-04-17 15:44:46 +02:00
Fabio Erculiani
9bd552689e entropy: when entropy.client.interfaces.methods' reopen_client_repository
is called, make sure all the repository databases are closed
2009-04-14 23:15:12 +02:00
Fabio Erculiani
e16039af52 client.text_ui: fix shutil module usage 2009-04-08 06:25:23 +02:00
Fabio Erculiani
bf9ac1a287 entropy.*: move from etpRepositories to SystemSettings['repositories']['available'] 2009-04-06 20:35:02 +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
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
86746de6de reduce the amount of information printed by equo --help and advice
user to use --verbose to get the full content.
2009-04-01 20:21:27 +02:00
Fabio Erculiani
95c3a0f59f Entropy Server and Community Repositories: make possible to specify
only a certain set of atoms to update through --atoms option.
Moreover, add --dbsync and --dbupdate options to the new spm pkgset
sub-tool
2009-04-01 15:03:34 +02:00
Fabio Erculiani
501f0d7667 Entropy Server and Community Repositories: add new spm sub-tool "pkgset"
The new pkgset sub-tool allows maintainers to compile package sets from
entropy in a easier way.
2009-04-01 12:48:27 +02:00
Fabio Erculiani
d2449e2740 equo (community repos): export spm tool from reagent 2009-04-01 12:00:58 +02:00
Fabio Erculiani
df34d1627e client.text_ui (equo): fix grammar typo 2009-03-31 09:33:31 +02:00
Fabio Erculiani
7b3c1f1986 equo: add support for custom install source. 2009-03-31 09:32:54 +02:00
Fabio Erculiani
19937466cd "equo source", new option --savehere
user can choose to download sources into CWD instead of entropy tmp
directory
2009-03-30 13:23:15 +02:00
Fabio Erculiani
7dd3f8a0ed "equo unusedpackages" add --sortbysize parameter and logic 2009-03-29 20:17:39 +02:00
Fabio Erculiani
2590fcdd06 text_ui: code style updates and improved unusedPackagesTest
unusedPackagesTest now prints package size information when run without
--quiet
2009-03-29 20:10:11 +02:00
root
2b58040423 text_query.print_package_info: format homepage metadata 2009-03-29 16:01:58 +02:00
Fabio Erculiani
dee0b718ed text_query: API changes
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
2009-03-29 15:49:34 +02:00
Fabio Erculiani
01c6e72420 text_query: code conventions update 2009-03-29 15:20:31 +02:00
Fabio Erculiani
b7f1ae4131 text_query: code refactoring
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)
2009-03-29 15:11:19 +02:00
Fabio Erculiani
b63f7590f9 equo query tool, code updates
remove idreturn argument from searchInstalled and add package size
information output when running with --verbose
2009-03-28 20:44:18 +01:00
Fabio Erculiani
a5569db021 add "equo database vacuum"
This tool is useful to shrink the client repository database by
removing SQL indexes. Comes to help on ISO images creation
2009-03-28 20:42:13 +01:00
root
2978574934 slightly improve "equo query orphans"
it is still very slow although it has proven great stability.
This patch improve the performance a bit.
2009-03-28 08:34:58 +01:00
lxnay
3fd8a17ca1 Entropy/Equo:
- make equo source available for normal users too


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3203 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-19 00:04:57 +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
90967de156 Entropy/*:
- 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
2009-03-15 13:37:29 +00:00
lxnay
0765fb8b1f Entropy/*:
- 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
2009-03-15 12:27:14 +00:00
lxnay
07d9fe86bf Entropy/*:
- 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
2009-03-15 12:19:13 +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
0d1c594fef Entropy/*:
- use is_root instead of isRoot function (deprecated)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3180 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-15 12:13:16 +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
2f70ebdd21 Entropy/TODO:
- 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
2009-03-10 18:49:12 +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
c6794f3d38 Entropy/*:
- make use of the new entropy package structure


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3124 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 16:01:57 +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
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
lxnay
b7020aef97 Entropy/Equo:
- add support for multifetch: --multifetch and --multifetch=N options added


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3086 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-01 11:21:33 +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
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