Commit Graph

166 Commits

Author SHA1 Message Date
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
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
868f11c245 Entropy/Server:
- reagent, activator: change modules import order

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3133 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 22:44:48 +00:00
lxnay
61078729e5 Entropy/Server:
- reagent, activator: change modules import order

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3132 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 22:43:31 +00:00
lxnay
11a5aeb55c Entropy:
- comment out another set of imports
Entropy/Spritz:
- improve thread shutdown
Entropy/entropy-repository-daemon:
- update threads handling code


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3128 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 18:48:31 +00:00
lxnay
e1d0688034 Entropy/entropyTools:
- parallelTask: add get_function method


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3127 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 18:29:55 +00:00
lxnay
b36745281a Entropy/Client/Interfaces:
- clear_dump_cache: catch OSError exceptions on os.listdir
Entropy:
- remove other secondary imports
Entropy/repository-daemon spec app:
- refresh some code


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3126 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-08 18:24:06 +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
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
5b19ab1f06 Entropy/Bash Trigger Specification:
- add documentation about exported env variables


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3077 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-27 17:46:50 +00:00
lxnay
e7f1dc863e Entropy/TODO:
- update TODO
Entropy/TriggerInterface:
- add support for bash based triggers (preliminary and incomplete)
- provide bash based trigger example


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3073 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-24 21:21:45 +00:00
lxnay
d57249e737 Entropy/Community Repositories/Server Repositories:
- export support for manual dependencies handling to equo and reagent


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3041 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-17 14:01:46 +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
cb509f5d42 Entropy/TODO:
- update TODO
Entropy/PackageInterface:
- call preinstall step before preremove and postremove on install actions
Entropy/client:
- move repositories.conf to repositories.conf.example
Entropy:
- use /usr/bin/python2 instead of /usr/bin/python as interpreter to avoid Python 3 issues


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2996 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 12:17:27 +00:00
lxnay
76367c132b Entropy/Entropy System Daemon:
- small code refresh
Entropy/SystemManagerServerInterface:
- add thread lock on ServiceInterface


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2939 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-25 19:01:16 +00:00
lxnay
fa51b1576c Entropy/Reagent/Community Repos/ServerInterface:
- implement server-side database backup and restore tool
Entropy/EquoInterface:
- list_backedup_client_databases: add client_dbdir parameter


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2903 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-15 10:46:55 +00:00
lxnay
9a19a9f69c Entropy/TODO:
- update TODO
Entropy/Equo/Reagent/Activator:
- add short options (-p,-a,-v,-q,-pavq)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2861 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-06 19:24:25 +00:00
lxnay
384cb91025 Entropy/Reagent:
- use SystemExit instead of sys.exit()
Entropy/Activator:
- use SystemExit instead of sys.exit()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2855 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-06 18:43:09 +00:00
lxnay
4bf56a99c3 Entropy/TODO:
- update TODO
Entropy/entropyConstants:
- say goodbye to etpRSSMessages
- other cosmetical fixes
Entropy/EquoInterface:
- close LogFile instance's file on instance delete
- wipe os.system() calls
- rewrite get_meant_packages() to use SOUNDEX features of SQLITE3
- replace old and slow filterSatisfiedDependencies with get_unsatisfied_dependencies, which is faster and more reliable (added NEEDED check by default)
- improve speed of generate_dependency_tree
- improve speed of get_required_packages
- fix get_world_update_cache_hash()
- improve speed of retrieveInstallQueue
- make __unpack_package reporting the right error on uncompressTarBz2 if this crashes
- remove Python 2.4/2.5 workarounds since they are not needed anymore, being entropyTools.uncompressTarBz2 fixed forever (handling UTF-8 filenames correctly)
- adjust __move_image_to_system for the changes above
- __move_image_to_system, if an error is caught on shutil.move, do not crash but report it to user instead
Entropy/TriggerInterface:
- replace os.system() with subprocess.call()
- remove unused nspluginwrapper trigger
Entropy/ErrorReportInterface:
- add locale output
- get the full content of ps auxf, not just the first 80 chars
- update handler accordingly (handlers/)
Entropy/LogFile:
- close log file on object deletion
Entropy:
- import subprocess by default
Entropy/EntropyDatabaseInterface:
- remove etpRSSMessages and use a ServerInterface variable instead
- add new method getVersioningData, useful to speed up other Entropy areas
- improving speed of other functions adding more one-liners conditionals
- add new method retrieveNeededRaw, useful to speed up other Entropy areas
- improve speed of retrieveDependenciesList, everything can be done at SQL level
- new method searchSimilarPackages that uses SOUNDEX to retrieve similar package/atom names
- improve speed of listAllCategories
- shrink databaseStructureUpdates
- remove old and dusted method
- improve speed of doDatabaseImport
- improve speed of database_checksum
- group multiple .cursor.execute using .cursor.executescript
- improve speed of __filterSlotTagUse
Entropy/entropyTools:
- improve speed and reliability of uncompressTarBz2


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2818 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-30 18:43:16 +00:00
lxnay
5a11837e25 Entropy/ServerInterface:
- orphaned_spm_packages_test(): print packages not found in string form


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2791 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-15 15:01:23 +00:00
lxnay
5794c3b671 Entropy/Reagent:
- fix spm function call


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2789 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-15 14:57:58 +00:00
lxnay
14df3cbeda Entropy/Reagent:
- fix spm function call


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2788 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-15 14:55:43 +00:00
lxnay
5d62fc68e7 Entropy/ServerInterface/Reagent:
- implement orphaned SPM packages scan


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2787 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-15 14:54:42 +00:00
lxnay
31c7feaaef Entropy/TODO:
- update TODO
Entropy/Reagent:
- add configuration files updates check
Entropy/translations:
- update translations and template file


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2761 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-10 12:23:15 +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
cac4a96482 Entropy/Activator:
- fails on wrong extended arguments


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2720 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-05 21:35:21 +00:00
lxnay
eb78c00601 Entropy/entropy-system-daemon:
- add default session ttl


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2715 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-04 22:22:15 +00:00
lxnay
edbd2ea4d1 Entropy/Reagent:
- libtest: avoid to push garbage on complete

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2705 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-23 18:16:10 +00:00
lxnay
cec32d320c Entropy/Community Repositories/Server-side Repositories:
- add the ability to arbitrary tag packages
Entropy:
- use entropyTools.create_package_atom_string and entropyTools.create_package_filename to create package atom and filename strings
Entropy/EquoInterface:
- atomMatch, add the ability to match packages by tag from here too


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2663 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-11-09 19:35:05 +00:00
lxnay
94c9f0c351 Entropy/Activator:
- add support for notice boards handling


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2523 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-13 17:15:03 +00:00
lxnay
994b4a87f5 Entropy/Equo:
- update --upgrade feature when running equo world
Entropy/EquoInterface:
- update move_to_branch() to reflect latest branch management changes
Entropy/EAPI3:
- update EAPI3 commands to reflect latest branch management changes
- also update server-side functions, removing the old ones to avoid to be run by old clients
see server/entropy-repository-daemon changes to know more


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2506 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-08 18:43:32 +00:00
lxnay
c05c5e2efb Entropy/Reagent:
- ease the output, do not print the whole package list


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2499 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-08 13:39:41 +00:00
lxnay
b5ec9b033d Entropy/database split:
- some changes to allow easy branch migration through the 'switchbranch' tool


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2498 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-08 13:36:40 +00:00
lxnay
561db807d5 Entropy:
- databases now split by branch (first chunk, ServerInterface migrated, EquoInterface and Repository Daemon to go


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2496 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-08 12:05:00 +00:00
lxnay
df145cd5b7 Entropy/repository manager example:
- add google client id param


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2492 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-07 13:13:56 +00:00
lxnay
2977ea5d14 Entropy/Repository daemon example:
- add google developer key support


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2489 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-07 10:51:33 +00:00
lxnay
c0cb362588 Entropy/Repository daemon test client:
- add the ability to set the port from shell


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2461 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 17:02:49 +00:00
lxnay
374d5b11aa Entropy/System Manager Repository Daemon example:
- add community_repo bool switch


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2449 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-10-03 01:55:50 +00:00
lxnay
3910af97e7 Entropy/Electron:
good bye! You won't be missed


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2434 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-29 19:49:24 +00:00
lxnay
6cbdcc909c Entropy/SystemManager daemon:
- example application of the SystemManager Server-side infrastructure


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2419 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-24 13:29:45 +00:00
lxnay
fb84ad41db Entropy/reagent:
- fix packages move/copy from a repo to another


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2411 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-09-20 15:47:04 +00:00
lxnay
00611929fa Entropy/repository daemon template:
- update template to reflect previous commits


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2325 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-02 12:53:00 +00:00
lxnay
3484475909 Entropy/Entropy Repository Daemon example:
- add support for UGC


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2290 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-24 07:48:02 +00:00
lxnay
3cd5f3c403 Entropy/urlFetcher/RepoInterface:
- add a new disallow_redirect parameter, that makes urlFetcher.download() to return an error in case of URL redirects
- enable disallow_redirect when downloading repository data (RepoInterface.run_sync())
- avoid to return an error if urlFetcher.download() fails due to issues with our custom User-Agent when downloading from HTTP
Entropy/Socket Services:
- create a parent class SocketCommandsSkel which acts as skeleton to any SocketHostInterface command class, this avoids having to declare register() matching a proper signature not even documented (until this commit)
- some slight fixes/updates in the BasicPamAuthenticator class, change docmd_userdata() API removing unneeded parameters
- make BuiltInCommands class a subclass of SocketCommandsSkel and remove register() since it's now inherited
- get_new_session() now creates 4 more keys in the session dictionary for easy reference: admin, moderator, user, developer indicating the post-authentication user level
Entropy/phpbb3Authenticator:
- update API to reflect the changes in SocketHostInterface
Entropy/Repository Services interface:
- add a new commands class (phpbb3Commands) that can be used to extend functionalities when using the phpbb3 authenticator
Entropy/Electron:
- more preliminary work on the login and widgets
Entropy/RepositoryCommands:
- make it a subclass of SocketCommandsSkel too
Entropy/RepositorySocketServerInterface:
- make external_cmd_classes keyword argument to work correctly
- update get_logged_user_data() to reflect changes in server API
- add 3 new functions (self explanatory): is_administrator(), is_moderator(), is_developer(), is_user()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2248 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-05 17:30:17 +00:00
lxnay
882a7f7bfb Entropy/SocketHostInterface/Repository Daemon:
- fix docmd_login arguments length


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2210 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 19:16:08 +00:00
lxnay
461ac49e8f Entropy/SocketHostInterface:
- store IP address inside session data
- update commands to make them use the new session param above
Entropy/repository daemon template:
- sync with API changes
Entropy/phpbb3 Auth Interface:
- use TABLE_PREFIX variable to be more compatible with exotic settings
- implement _update_session_table() to handle users activity


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2208 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 19:10:26 +00:00
lxnay
d3a957e02a Entropy/repository daemon template:
- check client IP address too
Entropy/phpbb3 Auth Interface:
- add _is_ip_banned() method


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2200 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-30 12:01:14 +00:00