Commit Graph

1892 Commits

Author SHA1 Message Date
lxnay
67e4a601e6 Entropy/PackageInterface:
- now package file moves to live system are atomic


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3008 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-10 16:39:23 +00:00
lxnay
88c514f51c Entropy/entropyConstants:
- split const_HandleException creating const_kill_threads
Entropy/entropyTools:
- kill_threads uses const_kill_threads
- introduce movefile(), from Portage, that will be used to atomically move files


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3007 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-10 16:15:19 +00:00
lxnay
b9b08b78d4 Entropy/TODO:
- update TODO
Entropy/PackageInterface:
- implement config action, emerge --config hooks now implemented
Entropy/Equo:
- add new command equo config for handling packages needing a pkg_config (emerge --config) callback after install


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3006 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-09 00:03:14 +00:00
lxnay
c7d1c42f67 Entropy/urlFetcher:
- beautify syntax


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3005 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 20:35:15 +00:00
lxnay
2614cccbc1 Entropy/urlFetcher:
- beautify syntax


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3004 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 20:23:48 +00:00
lxnay
3ade7accff Entropy/urlFetcher:
- beautify syntax


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3003 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 20:22:07 +00:00
lxnay
7aaa049baf Entropy/SystemSettings:
- fix get method


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3002 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 17:32:12 +00:00
lxnay
eeb55fe045 Entropy:
- since it seems to not make sense to have a connection test link to check against on 'equo update', let's remove it and see how users react


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3001 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 17:24:38 +00:00
lxnay
8c022b9e4b Entropy/SystemSettings:
- extend class dict functionalities


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3000 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 17:17:21 +00:00
lxnay
07c95a18b2 Entropy/ServerMirrorsInterface:
- get_files_to_sync: fix database packages.db.system_mask file handling


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2999 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-08 17:02:42 +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
649c613a55 Entropy/EntropyCacher:
- fix a critical issue that could cause random lockups on sync() if wait is True


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2987 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-03 14:29:38 +00:00
lxnay
97081b2624 Entropy/EntropyCacher:
- make possible to start/stop the thing
Entropy/EquoInterface:
- generate_cache: stop Cacher before purging


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2986 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-03 13:23:41 +00:00
lxnay
6d6500c24e Entropy/Equo/world:
- small fix, when upgrading branch, do not call RepoInterface.sync if an exception occured
Entropy/RepoInterface/EAPI3:
- handle get_eapi3_local_database correctly, can return None
Entropy/entropyConstants:
- new global method const_set_chmod


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2985 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-03 12:49:38 +00:00
lxnay
c76718436d Entropy:
- properly get exception traceback and store where needed


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2984 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-03 12:00:48 +00:00
lxnay
1528342dfb Entropy/EquoInterface:
- __remove_content_from_system(): when spawning _handle_config_protect, always encode tofile from utf-8


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2972 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-31 14:53:08 +00:00
lxnay
70285d0459 Entropy/EquoInterface:
- _lookup_inverse_dependencies: ignore broken client db entries


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2970 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-31 14:11:58 +00:00
lxnay
2b91aac4d1 Entropy/RepoInterface:
- remove pdb


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2969 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-31 13:18:34 +00:00
lxnay
4b891983a6 Entropy/EquoInterface:
- get_world_update_cache: improve reliability
- calculate_world_updates: save cache synchronously


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2968 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-31 12:56:30 +00:00
lxnay
33caba6c93 Entropy/Equo:
- kill all stale threads the hard way when an exception occured
Entropy/Spritz:
- same as above


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2967 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-30 08:14:41 +00:00
lxnay
6326527fdc Entropy/ServerMirrorsInterface:
- get_remote_databases_status, create remote FTP directory if it doesn't exist


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2965 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-29 13:00:56 +00:00
lxnay
b7009574a5 Entropy/EntropyDatabaseInterface:
- implement packages changelog support and their methods
- remove unused searchPackagesKeyVersion method
- remove checkReadOnly calls from most of the methods
Entropy/EquoInterface:
- implement support for package changelogs
Entropy/PortageInterface:
- implement support for package changelogs


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2956 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-28 14:59:39 +00:00
lxnay
a755eca4bb Entropy/SystemManagerClientInterface:
- disable do_cache_session by default


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2953 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 19:30:25 +00:00
lxnay
79c1c053dd Entropy/SocketHostInterface/BuiltInCommands:
- fix (again) docmd_alive command and check if client shares the same IP of the one that initiated the session

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2952 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 18:50:36 +00:00
lxnay
7d6f9b50e1 Entropy/SocketHostInterface/BuiltInCommands:
- fix docmd_alive socket method
Entropy/SystemManagerClientInterface:
- implement session cache


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2951 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 18:39:27 +00:00
lxnay
5133dd2e98 Entropy/SocketHostInterface:
- fork lock: handle the thread lock in a saner way


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2950 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 17:42:07 +00:00
lxnay
397521f231 Entropy/SocketHostInterface:
- do not crash when trying to send the 'maximum connection reached' string to client if it's not reachable


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2949 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 16:59:00 +00:00
lxnay
88f539e7e5 Entropy/SocketHostInterface:
- if HostInterface has ForkLock attribute that's a thread lock, use it when running in fork mode
Entropy/SystemManagerServerInterface:
- test a solution featuring a Fork Lock


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2947 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 13:17:08 +00:00
lxnay
13f77c64e1 Entropy/SystemManagerServerInterface/SystemManagerRepositoryCommands:
- adapt code to use a hard-drive stored copy of the system queue, and cross fingers


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2946 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 12:30:19 +00:00
lxnay
ee5940aa7a Entropy/SocketHostInterface/BasicPamAuthenticator:
- remove thread lock on class methods, not needed on this implementation


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2944 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 10:14:13 +00:00
lxnay
fdb955ab4f Entropy/SystemManagerServerInterface:
- _pop_item_from_queue: improve speed and reliability, remove parallel_mode parameter


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2943 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 10:05:16 +00:00
lxnay
bfc93662fb Entropy/SystemManagerServerInterface:
- reduce complexity of the queue processor as first step to debug multi-user threading issues on the daemon


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2942 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 09:59:10 +00:00
lxnay
76a4578f1d Entropy/SystemManagerServerInterface:
- revert previous changes


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2941 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 09:25:34 +00:00
lxnay
a63c1265f6 Entropy:
- append -O to python interpreter args for equo and spritz


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2940 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-26 09:17:30 +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
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
f2472ca9ac Entropy/SystemManagerExecutorServerRepositoryInterface:
- always flush stdout before closing it


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2937 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-20 20:00:21 +00:00
lxnay
343bd0835f Entropy/ServerInterface:
- when downloading a remote db revision file, check if the download itself went fine
Entropy/SystemManagerExecutorServerRepositoryInterface:
- remove some debugging output


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2935 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-20 19:41:22 +00:00
lxnay
fcb6469432 Entropy/SystemManagerServerInterface:
- load_queue_ext_rc, store_queue_ext_rc: queue_id is int...


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2934 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-18 12:26:45 +00:00
lxnay
97c4d47219 Entropy/ServerInterface:
- when uploading a new database, show a simple package sets summary
Entropy/EquoInterface:
- packageSetList, packageSetSearch: add matchRepo argument


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2933 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-18 12:22:17 +00:00
lxnay
52a7d3c35c Entropy/SystemManagerServerInterface:
- fix remove_queue_ext_rc


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2932 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-18 11:58:40 +00:00
lxnay
2ac214ef2b Entropy/TODO:
- update TODO
Entropy/SocketHostInterface:
 - use the 'with' statement when dealing with code inside thread locks
Entropy/SystemManagerServerInterface:
 - move queue items extended result objects away from the main dictionary, this will fix the performance issue with long queues
 - use the 'with' statement when dealing with code inside thread locks


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2931 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-18 11:51:02 +00:00
lxnay
97b2649568 Entropy/SystemSettings:
- improve internal dictionary handling and move live_unmasking dict away from the persistent dict
Entropy/Spritz:
- improve reliability of the queue clean button, especially when masked packages have been selected


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2930 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-17 17:29:48 +00:00
lxnay
3f912a1b42 Entropy/*:
- do not use mapping objects in function arguments but default them to None and use isinstance instead. Mapping objects can be really b*stards

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2927 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-17 16:55:47 +00:00
lxnay
11df5aa314 Entropy/SecurityInterface:
- generate advisories cache on every new fetch if xcache is enabled
Entropy/EntropyCacher:
- fine tune while loops


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2924 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-17 15:10:01 +00:00
lxnay
f75ae7e975 Entropy/dumpTools: improve module speed by pre-allocating global variables
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2923 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-17 15:08:45 +00:00
lxnay
c660b43ae7 Entropy/TODO:
- update TODO
Entropy/LogFile:
- standardize time stamp in log files


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2921 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-17 13:05:36 +00:00
lxnay
66972dd778 Entropy/entropyTools:
- lifobuffer: improve reliability

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2917 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-16 21:14:20 +00:00
lxnay
02f2b17bba Entropy/EquoInterface:
- reorder __init__ calls to avoid possible dumpTools lock under certain circumstances
Entropy/EntropyCacher:
- improve reliability
Entropy/entropyTools/lifobuffer:
- improve reliability


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2915 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-16 20:23:40 +00:00
lxnay
582eab8eae Entropy/TODO:
- update TODO
Entropy/entropyConstants:
- remove conflicting_tagged_packages from etpConst and move to a 'per-repo' config file
Entropy/SystemSettings:
- handle new conflicting tagged packages file per-repo
Entropy/RepoInterface:
- when syncing the repo, download the new conflicting tagged packages file
Entropy/ServerInterface:
- handle the new conflicting tagged packages file (upload/download)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2911 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-16 15:36:54 +00:00