Commit Graph

1863 Commits

Author SHA1 Message Date
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
lxnay
83b5030e40 Entropy/ServerInterface:
- when checking if a repository is valid, spawn openServerDatabase with is_new = True


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2910 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-16 13:50:50 +00:00
lxnay
141241a1ec Entropy/SystemSettings:
- before bugging the Entropy client database on scan() check if it's valid and initialized


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2909 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-16 13:45:01 +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
5fcbef3115 Entropy/EquoInterface:
- generate_dependency_tree: added support for PDEPENDs, which will be sorted correctly now, after the package itself
Entropy/EntropyDatabaseInterface:
- new method retrievePostDependencies, useful to retrieve PDEPENDs


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2904 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-15 17:31:06 +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
7c1623dfc9 Entropy/EquoInterface:
- remove_user_package_set, add_user_package_set: also return a message description of the action taken


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2900 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-14 22:38:20 +00:00
lxnay
854595f6cf Entropy/EquoInterface:
- new method add_user_package_set
- new method remove_user_package_set
- change API on packageSetMatch


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2897 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-14 15:30:35 +00:00
lxnay
927e10b652 Entropy/EquoInterface:
- is_match_unmasked_by_user, is_match_masked_by_user: change returning result and check if match passed is valid
- mask_match: remove EntropyCacher sync from the function, move it to clear_dump_cache


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2895 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-14 12:36:44 +00:00
lxnay
adac2e6dbf Entropy/EquoInterface:
- properly initialize EntropyCacher during EquoInterface.__init__ to avoid entering in a cache cleanup loop that causes it to be always cleared up
Entropy/EntropyCacher:
- add async argument to the push method to choose if to write the cache directly to disk or queue it into the CacheBuffer


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2894 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-13 11:05:44 +00:00
lxnay
91bee1c1c7 Entropy/EquoInterface:
- some code style updates
- fix packageSetMatch for repository-based package sets


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2890 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-12 08:51:05 +00:00
lxnay
f5fb4a768a Entropy/entropyConstants:
- move cache files extension string to etpConst
- fix the Entropy code accordingly
Entropy/EntropyCacher:
- add sync method to force a cache flush
- implement a thread lock to be thread-safe
Entropy/EquoInterface:
- fix a bug with cache cleaning after masking/unmasking packages
- scan PackageSettings at every instance load to ensure proper settings reads
- get_masked_packages_tree: some speed improvements
- is_match_masked_by_user: new method, makes easy to check if a package has been masked by the user
- is_match_unmasked_by_user: same as above, new method
- mask_match, unmask_match: rewrite the management of package masking and make possible to mask a package from the interface too (only unmask was previously implemented)
- mask_match, unmask_match: make possible to mask/unmask by key + slot coupling (app-foo/foo:2)
Entropy/EntropyDatabaseInterface:
- improve speed of idpackageValidator child methods


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2886 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-11 21:27:32 +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
7de3b90137 Entropy/EquoInterface:
- libraries_test: return dict as first tuple element if ldconfig is not found


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2882 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-11 00:01:16 +00:00
lxnay
8775fb28b8 Entropy:
- when removing items from sets, use their discard()
Entropy/EquoInterface:
- libraries_test: add an abort hook
- clear_dump_cache: catch OSError exceptions on os.remove


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2881 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-10 22:38:18 +00:00
lxnay
9d3277e00a Entropy:
- when using EntropyCacher, always try to pass it a shadow copy of the object


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2880 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-08 23:43:29 +00:00
lxnay
c53824ebd9 Entropy/dumpTools:
- also catch RuntimeError exceptions on dumpobj


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2879 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-08 23:42:56 +00:00
lxnay
e5e0d6cc10 Entropy/dumpTools:
- loadobj: since we are multithreaded, a file can be removed between the availability check and the open() call, so, trap IOError and why not, also OSError exceptions


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2873 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-08 22:42:56 +00:00
lxnay
4bf5d1d093 Entropy/entropyTools:
- add two new methods to convert dictionaries to XML and vice versa: xml_from_dict_extended, dict_from_xml_extended


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2868 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-08 15:56:43 +00:00
lxnay
5f72a95146 Entropy/ServerInterface:
- openServerDatabase: add is_new parameter to allow skipping critical checks for new databases
Entropy/EquoInterface:
- list_repo_packages_in_category: return list instead of set
Entropy/EntropyDatabaseInterface:
- searchPackagesByCategory: improve code syntax


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2867 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-08 15:56:09 +00:00
lxnay
6124bcf10a Entropy/EquoInterface:
- atomMatch: some misc syntax adjustments
Entropy/RepoInterface:
- fix database download when Entropy API = 1


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2863 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-07 20:15:08 +00:00
lxnay
d0ff5ba4a9 Entropy/EntropyDatabaseInterface:
- createCountersTable: do not drop table
- retrievePackageSets: if packagesets table is not available, return {}
- databaseStructureUpdates: - re-add counters and packagesets table check


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2862 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-06 19:31:26 +00:00
lxnay
ecf484f529 Entropy/EquoInterface:
- retrieveInstallQueue: if treepackages doesn't contain 0 as key, return empty list


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2860 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-06 19:23:30 +00:00
lxnay
1eda423bd7 Entropy/EntropyCacher:
- introduce new cache management class, featuring async writes
Entropy/EquoInterface:
- make EquoInterface using EntropyCacher, gaining 15% more speed on non-cached atomMatch calls
- improve destroyer (destroy())
- atomMatch: reorganize cache hashing
Entropy/FileUpdatesInterface:
- improve scanfs method syntax
- improve load_cache reliability
Entropy/SecurityInterface:
- __set_advisories_cache: make it a public method (set_advisories_cache)
Entropy/ServerInterface:
- implement destroyer (destroy())
- ensure_paths: check if repository is in etpConst['server_repositories'] before spawning
Entropy/EntropyDatabaseInterface:
- fetchSearchCache: improve speed
- storeSearchCache: improve speed
- atomMatchFetchCache: improve speed
- atomMatchStoreCache: improve speed


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2859 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-06 18:56:27 +00:00
lxnay
98ed3fdc07 Entropy/entropyTools:
- TimeScheduled: add set_delay method
- TimeScheduled: remove try/except from do_delay, no longer needed
- lifobuffer: improve speed, add method clear and make it multithreading aware


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2858 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-06 18:48:56 +00:00
lxnay
357b2fe754 Entropy/outputTools:
- use SystemExit instead of sys.exit()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2857 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-06 18:47:06 +00:00
lxnay
6ac41432c2 Entropy/EntropyDatabaseInterface:
- insertDependencies(): improve speed
- insertPackageSets(): improve reliability


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2852 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-05 22:25:11 +00:00
lxnay
f083b686ca Entropy/EntropyDatabaseInterface:
- make insertPackageSets method working
- improve speed of listBranchPackagesTbz2


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2851 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-05 22:16:03 +00:00
lxnay
9a7243351b Entropy/ServerInterface:
- add parameter dbconn to update_database_package_sets


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2850 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-05 21:38:12 +00:00
lxnay
cb5f2a8bbb Entropy/EntropyDatabaseInterface:
- addPackageToInstalledTable(): code style update
- insertPackageSets(): do not use an iter function


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2849 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-01-05 21:22:33 +00:00