Commit Graph

54 Commits

Author SHA1 Message Date
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
(no author) d9d565ec8f test changes
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1514 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-26 00:44:37 +00:00
(no author) f2a538a6b6 test changes
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1513 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-26 00:37:48 +00:00
(no author) 404e78d58a Equo:
- equo match must return masked packages too

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1483 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-17 16:45:28 +00:00
(no author) abe9806c97 Entropy API change:
- do not load SecurityInterface in EquoInterface.Security but create a function called EquoInterface.Security() which returns the instance


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1481 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-17 12:56:09 +00:00
(no author) 94040dc7f6 Equo:
- improve 'equo match' by adding --showdesc option too


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1479 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-15 05:33:37 +00:00
(no author) b7b6e4dc0d Equo:
- added 'equo match' tool, it is more or less the same of 'equo search' except it uses EquoInterface.atomMatch()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1478 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-15 05:25:47 +00:00
(no author) 6e2d4773be - improved equo search output formatting
- improved spritz stability and eye-candiness

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1270 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-02-21 15:02:15 +00:00
(no author) 42734286fa added license query tool
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1263 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-02-20 16:40:30 +00:00
(no author) f73de88b5c Spritz:
- fixed packages list generation when entropy cache is empty
Entropy/Equo:
  #- equo world is using too much disk
  #- if dependencies are not found, show them all
  #- add masking information to query results
  #- add required query tool
  #- let queries work on masked packages too


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1226 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-02-17 12:33:23 +00:00
(no author) 9bf2a61c1a - improved orphans search tool in terms of memory consumption and speed
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1216 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-02-15 09:57:27 +00:00
(no author) 491007bf2f Spritz:
- completed configuration files interface
- some misc bug fixes
Entropy:
- moved the package masking parser to entropy.py/EquoInterface
- fixed some issues in equo query orphans and moved some equo conf functions to its EquoInterface class


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1212 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-02-14 17:16:56 +00:00
(no author) 54f74855cf - dynamic library breakages detection infrastructure implemented,
can slow down equo a little bit at the beginning but it's worth it
- misc bug fixes to the query interface


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1179 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-02-09 16:56:56 +00:00
(no author) 4ce9d576aa fixed reagent database query tools - NOT THIS ONE, WAIT THE NEXT ONE
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1066 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-01-18 20:23:42 +00:00
(no author) a22c9aaf16 - fixed query tool
- eventually fixed all unicode decoding/encoding issues


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1064 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-01-18 17:49:23 +00:00