Commit Graph

32 Commits

Author SHA1 Message Date
lxnay
8165dafa9a Entropy:
- move all the code inside the entropy package
- add compat modules outside
Entropy/Transceivers/FtpInterface:
- fix is_file_available to work on more systems


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3146 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-11 00:10:08 +00:00
lxnay
8297695411 Entropy/package:
- move entropyConstants to entropy.const (keep entropyConstants module for backward compat)
- move entropyTools to entropy.tools (keep entropyTools module for backward compat)
- move outputTools to entropy.output (keep outputTools module for backward compat)
- move dumpTools to entropy.dump (keep dumpTools for backward compat)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3140 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-10 19:15:46 +00:00
lxnay
b7ae71fe74 Entropy/dumpTools:
- dumpobj: fix directory permissions setup


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3012 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-02-10 18:32:07 +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
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
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
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
c0e48328ca Entropy/dumpTools:
- use a safer with statement while opening file objects in loadobj and dumpobj functions

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2811 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-21 19:10:31 +00:00
lxnay
c1346bea70 Entropy/dumpTools:
- getobjmtime(): fix dump_path generation


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2725 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-06 15:28:49 +00:00
lxnay
b44bf5350d Entropy/DistributionUGCInterface:
- add caching infrastructure to avoid running long queries multiple times returning the same result
- set cache expiration to 1 day by default


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2724 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-12-06 15:03:51 +00:00
lxnay
87d842e0bf Entropy/dumpTools:
- fix unserialize_string()


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2136 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-12 18:31:25 +00:00
lxnay
8878f7b729 Entropy/dumpTools:
- add functions to serialize/unserialize from/to strings


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2134 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-06-12 18:27:42 +00:00
lxnay
0031249040 Entropy/Repository Server Interface:
- more work on it
- general improvements on SocketHostInterface


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1975 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-26 01:00:02 +00:00
lxnay
22b180d046 Entropy/EquoInterface:
- add dep strings auto updates infrastructure (starting with bad KDE dep strings)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1861 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-04-24 20:19:00 +00:00
lxnay
dd59c1b146 Entropy/Equo:
- Socket Interface:
  - completed termination strings
  - completed the basic structure and protocol specifications
- Database backend:
  - removed useless indexes
  - implemented useful indexes
  - improved queries speed (whose make dependencies calculation faster)
  - implemented tables automigration to INTEGER PRIMARY KEY AUTOINCREMENT to allow future repositories differential updates
- Entropy as user:
  - made equo update possible to be run for users in 'entropy' group, this will allow to have a powerful GUI notification applet
- improved repositories synchronization speed


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1521 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-27 20:06:34 +00:00
lxnay
c914aadcea Entropy:
- lots of bug fixes
- implemented entropy directories GID and permissions configuration
- improved Socket Interface (not yet done)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1519 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-26 09:40:54 +00:00
(no author)
b55728f7be Entropy:
- Socket Interface: returned objects are now serialized


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1512 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-03-25 11:59:31 +00:00
(no author)
dd691b9eb3 - fixed an issue with dumpTools.loadobj exceptions handling
- fixed an issue with EquoInterface.check_package_update
- fixed package reinstall in Spritz
- improved Spritz speed
- lots of bug fixes also


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1269 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-02-21 12:12:51 +00:00
(no author)
e3f9810d84 improve loadobj function
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1238 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-02-18 11:14:37 +00:00
(no author)
f34b33de06 trying to fix an odd pickling exception
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1237 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-02-18 11:08:52 +00:00
(no author)
b9cbb62d58 better handle cPickle/pickle exceptions
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1199 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-02-13 14:14:41 +00:00
(no author)
c829d63576 fallback to pickle if cPickle can't be loaded
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1190 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-02-12 20:58:00 +00:00
(no author)
a078677a68 reorganized caching directories
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1187 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-02-12 09:35:47 +00:00
(no author)
c3c7906e0a - totally rewritten Entropy modules and interface
the biggest commit, ever

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@982 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-01-03 17:48:57 +00:00
(no author)
7c168a44ed - EquoInterface implementation improvements
- TextInterface implementation improvements
- uiTools has been shrunk in favour of EquoInterface
major rewrite at 75%

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@972 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-01-01 11:59:31 +00:00
(no author)
8e87e26c33 switching to cPickle
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@853 cd1c1023-2f26-0410-ae45-c471fc1f0318
2007-12-12 23:10:40 +00:00
(no author)
4cef0fc7c3 added preliminary RSS logging - need to be extended
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@782 cd1c1023-2f26-0410-ae45-c471fc1f0318
2007-11-30 02:57:07 +00:00
(no author)
5dddb23bf2 - update dumpTools to use a while loop to trap CTRL+C
- fix tarinfo paths by encoding them to unicode

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@736 cd1c1023-2f26-0410-ae45-c471fc1f0318
2007-11-19 13:48:29 +00:00
(no author)
3a643f70d8 - fixed a lot of memory leaks
- updated some functions inside triggerTools
- improved speed of content table by indexing the content
- added --resume support for remove,install,world tools 
- removed memory hog contentCache (set())
- some misc fixes

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@728 cd1c1023-2f26-0410-ae45-c471fc1f0318
2007-11-19 04:07:28 +00:00
(no author)
4b60008ffd some bugfixes
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@610 cd1c1023-2f26-0410-ae45-c471fc1f0318
2007-11-05 01:49:05 +00:00
(no author)
7038bd49dd completely rewritten on-disk cache infrastructure, 500% faster and much more clean. some misc bug fixes too
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@591 cd1c1023-2f26-0410-ae45-c471fc1f0318
2007-10-30 13:35:34 +00:00