Commit Graph

97 Commits

Author SHA1 Message Date
Fabio Erculiani
5630947ae0 [equo] add "equo query revisions" tool 2010-01-28 09:41:31 +01:00
Fabio Erculiani
09a51bedcd [equo] text_query: improve search_package function usability 2010-01-12 15:51:13 +01:00
Fabio Erculiani
d5df42f981 [equo] fix short options support (for eg, "-qt" is not supported) 2010-01-08 16:44:54 +01:00
Fabio Erculiani
1aedb9fafb [entropy*] several code cleanup, tweakings and small API changes/polishing 2009-12-22 17:02:50 +01:00
Fabio Erculiani
7309d1446d [entropy*] move sabayonlinux.org domain info to sabayon.org, move more distro specific info to entropy.const 2009-12-21 23:50:31 +01:00
Fabio Erculiani
e1f7730d40 [equo] fix output text 2009-12-21 13:43:36 +01:00
Fabio Erculiani
32230aee42 [entropy] add support for build dependencies, entropy will now store them in repos (future task: make possible to install build deps too) 2009-12-20 22:32:28 +01:00
Fabio Erculiani
4c1fdc23b0 [entropy.*] rename generate_depends_tree, cleanup etpConst['dependency_type_ids'], fix code around 2009-12-16 21:27:10 +01:00
Fabio Erculiani
af7357c6f6 [equo] fix graphing abilities (equo query graph, and equo query revgraph) and ease print_package_info output 2009-12-16 20:50:44 +01:00
Fabio Erculiani
0213735419 [equo] text_query: search_installed_package should print packages data sorted alphabetically 2009-12-15 16:11:47 +01:00
Fabio Erculiani
26001576e9 [equo] text_query: fix pkg_data dict handling in get_installed_packages 2009-12-15 16:08:52 +01:00
Fabio Erculiani
d6bb675608 [entropy.*] several database size and performance improvements
:: implement developer-repo mode (aimed to developers who want to
   test stuff and can download the whole packages repository db).
   This results in 100% download size reduction for 99% of other users.
:: new "light" database versions now ship without packagechangelogs
   table content to improve speed, download time and size.
:: cleanup entropy.client.interfaces.repository code and add support
   for developer-repo feature
:: add warnings for users running "equo query changelog" without
   developer-repo mode enabled
2009-12-14 21:33:30 +01:00
Fabio Erculiani
c674f0478a [equo] fix "equo query orphans", make it work with new db schema 2009-12-13 10:02:02 +01:00
Fabio Erculiani
b5fb22d2f7 [equo] add "equo query graph" and "equo query revgraph" commands (see --help) 2009-12-12 17:00:22 +01:00
Fabio Erculiani
bfd2e4499d [equo] query: code cleanup and polishing 2009-12-12 10:52:06 +01:00
Fabio Erculiani
b6796b72cf [entropy.client.interfaces.dep] use Graph for inverse dependencies generation 2009-12-08 22:48:38 +01:00
Fabio Erculiani
36f4cc73a5 [equo] fix unicode strings used as arguments for install, search, match, remove, query 2009-11-25 17:13:26 +01:00
Fabio Erculiani
08f3ed297d [equo] if no matches are found for given "equo search" arguments, look inside client db 2009-11-09 19:03:11 +01:00
Fabio Erculiani
7a1e779977 [equo] retrieveSize now returns int 2009-10-05 14:23:01 +02:00
Fabio Erculiani
971d511295 [equo] bytes_into_human wants int type 2009-10-05 14:20:12 +02:00
Fabio Erculiani
33c005e668 [entropy] fix common idioms 2009-10-05 14:08:34 +02:00
Fabio Erculiani
e452421c7f [entropy] fix whitespace after comma 2009-10-05 14:05:32 +02:00
Fabio Erculiani
116f43fe0c [equo] also import const_convert_to_rawstring 2009-10-04 18:35:55 +02:00
Fabio Erculiani
f7149b7f9b [equo] port some other snippets to Python 3.x syntax 2009-10-04 18:30:53 +02:00
Fabio Erculiani
4152a88034 [equo] improve code quality in query module 2009-10-03 20:40:41 +02:00
Fabio Erculiani
0272b2abc4 [entropy] more Python 2.6/3.x compat fixes 2009-10-01 18:59:03 +02:00
Fabio Erculiani
71825e9c76 [entropy] migrate codebase to Python 2.6 only syntax 2009-09-30 19:53:47 +02:00
Fabio Erculiani
2fc1a5980f [equo] fix package files header 2009-09-20 14:44:41 +02:00
Fabio Erculiani
50e73203ac [text_query] fix possible unicode issues when inserting data in db on "orphans" module 2009-08-17 14:04:03 +02:00
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