Commit Graph

68 Commits

Author SHA1 Message Date
Fabio Erculiani
89062bf8f3 [entropy.db] complete API docstring and refactoring work 2009-08-15 22:27:41 +02:00
Fabio Erculiani
d1cbb6add5 [entropy.db] entropy.db API break+docstring merge almost complete 2009-08-14 16:37:56 +02:00
Fabio Erculiani
f65a0e3541 [entropy.db] API docstring merge + code review + API changes 2009-08-11 13:33:18 +02:00
Fabio Erculiani
371b3f8041 [client.equo/client.text_query] implement new query command
Implement new equo query command for listing repository packages
$ equo query list available <repository>
2009-06-18 15:42:16 +02:00
Fabio Erculiani
588765795b make "equo query belongs" able to translate given paths using the reverse symlink map 2009-05-27 11:58:10 +02:00
Fabio Erculiani
cc6f65837e make "equo query belongs" completely agnostic 2009-05-27 11:48:14 +02:00
Fabio Erculiani
6e59b7ae15 "equo query orphans" filter symlinks 2009-05-26 18:04:12 +02:00
Fabio Erculiani
37937fb52f equo, text_query: fix search_installed_packages when packages var
is empty
2009-04-24 00:51:43 +02:00
Fabio Erculiani
bf9ac1a287 entropy.*: move from etpRepositories to SystemSettings['repositories']['available'] 2009-04-06 20:35:02 +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
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
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
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
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
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
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
cbf0bb9f80 Entropy/text_query:
- show dependency type on dependency list


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3042 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-17 14:06:12 +00:00
lxnay
8ed554dca9 Entropy/Equo/text_query:
- searchPackages: handle DatabaseError exceptions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3022 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-15 00:00:19 +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
c6266cc39c Entropy/Equo:
- searchOrphans: do not crash on symlink loops
Entropy/RepoInterface:
- when setting up a new gentoo profile and reverting the change, make sure to remove the old make.profile too


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2938 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-25 17:25:12 +00:00
lxnay
2f7c6b8e94 Entropy/TODO:
- update TODO
Entropy/PackageSettings class:
- rename to SystemSettings
- add filesystem directories and its mask parsers
Entropy/*:
- rename PackageSettings to SystemSettings
Entropy/SystemSettings:
- improve parsers code and speed


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2908 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-16 13:40:41 +00:00
lxnay
30ed52ccc7 Entropy:
- move etpConst['packagemaskingreasons'] to EquoInterface.PackageSettings dict
- add reverse dict in EquoInterface.PackageSettings to standardize the package masking identifiers


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2885 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-11 10:30:56 +00:00
lxnay
46ba10dcbd Entropy/Equo/Reagent:
- implement package sets search
Entropy/ServerInterface:
- implement packageSetList, packageSetSearch, packageSetMatch methods


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2737 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-08 10:17:14 +00:00
lxnay
038c0761bd Entropy/Equo:
- fails on wrong extended parameters (like --as instead of --ask)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2719 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-05 21:33:49 +00:00
lxnay
5e738a6a24 Entropy/Equo:
- fix description search


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2606 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-01 12:02:08 +00:00
lxnay
8295bab21d Entropy/text_query:
- if atom == None, ignore and step over on searchOrphans


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2557 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-24 09:55:46 +00:00
lxnay
2d74f904fd Entropy/text_query:
- fix an issue causing printPackageInfo to load multiple EquoInterface instances
- improve search speed and reduce CPU usage


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2556 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-24 09:34:24 +00:00
lxnay
772f974dff Equo/query:
- check if myopts is empty


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2336 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 10:53:36 +00:00
lxnay
dd33480926 Entropy/ServerInterface:
- initialize_server_database(): fix revision handling on updateProgress
Entropy/Database Interface:
- addPackage(): avoid to have issues with missing revision key in etpData when revision != -1
Entropy/Equo:
- handle SPMError exceptions
Entropy/Equo/rescue:
- filter out broken atoms when running gentoosync


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2335 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 10:51:24 +00:00
lxnay
0a02ca0bf5 Entropy/Equo:
- fix unicode decoding issues in the orphans tool


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2235 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-03 10:02:56 +00:00
lxnay
e040c1a81f Entropy/Equo:
- make printPackageInfo() more fault tolerant


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2043 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-30 09:56:43 +00:00
lxnay
bce5ffb019 Entropy/query tools:
- do not use etpRepositories directly


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1973 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-25 10:23:48 +00:00
lxnay
5431bd2605 Entropy/Equo/Community Repositories:
- export more options and functions to Equo
- slightly improving some output
needs testing (tomorrow)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1962 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-23 22:03:30 +00:00
lxnay
b6ee2ba025 Entropy:
- move etpDatabase to entropy.py and rename it to EntropyDatabaseInterface
- say goodbye to databaseTools
- update other areas accordigly
Equo:
- add i18n support


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1943 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-19 14:13:03 +00:00
lxnay
91f34a8641 Entropy/ServerInterface/reagent:
- add list query to list all the packages in the default repository


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1801 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-04-17 16:26:06 +00:00
lxnay
f64be59de2 Entropy:
- make pychecker more happy


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1689 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-04-11 10:17:19 +00:00
lxnay
0fa928f55f fix searchDepends when reagent is calling
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1620 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-04-08 22:25:05 +00:00
lxnay
2f2d4b1ca9 fix server queries again
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1580 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-04-08 14:22:09 +00:00
lxnay
ceb50912f7 Entropy/Server Interface:
- nightly code updates
MIGRATION IS NOT DONE YET


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1559 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-04-05 00:10:33 +00:00
lxnay
c216762f36 Equo:
- fix orphans query on certain conditions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1547 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-31 20:39:39 +00:00
lxnay
b0fafb7e8d test changes
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1518 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-26 01:08:10 +00:00
(no author)
06f690e6d3 test changes
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1517 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-26 01:05:26 +00:00
(no author)
82ab4a8244 test changes
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1516 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-26 00:49:18 +00:00
lxnay
40fd5a8321 test changes
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1515 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-26 00:46:19 +00:00