Fabio Erculiani
0eec9cd4e9
[entropy.client] file_items_installed Set is no longer used, remove
2012-08-01 22:34:21 +02:00
Fabio Erculiani
cf86ca664d
[entropy.client.trigger] call environment_update() whenever ENV_DIRS have been touched
2012-08-01 18:48:12 +02:00
Fabio Erculiani
9c563f4bd6
[entropy.spm] expose the ENV_DIRS class variable, bump API
2012-08-01 18:47:45 +02:00
Fabio Erculiani
d08a02cf71
Release Entropy 1.0_rc129
2012-07-31 19:37:35 +02:00
Fabio Erculiani
3c57ec70c3
[entropy.client.interfaces.trigger] make "SPM" string translatable
2012-07-31 11:00:19 +02:00
Fabio Erculiani
8b8938116b
Revert "[entropy.db] drop isPackageScopeAvailable(), unused"
...
This reverts commit 492ace12e8 .
2012-07-30 22:19:05 +02:00
Fabio Erculiani
a43c399901
Release Entropy 1.0_rc128
2012-07-28 20:24:35 +02:00
Fabio Erculiani
2bdddef33e
[entropy.client] speedup dependencies_test() with a bit of memoization
2012-07-28 20:01:56 +02:00
Fabio Erculiani
10bf68d6ee
[entropy.server] _deps_tester: use memoization with dependency strings
2012-07-28 19:54:38 +02:00
Fabio Erculiani
1977decccd
[entropy.client.package] reduce memory consumption by writing "content_safety" to disk
2012-07-28 19:45:36 +02:00
Fabio Erculiani
89e7fcf949
[entropy.db] add "get_content_safety" keyword argument to getPackageData()
2012-07-28 19:38:59 +02:00
Fabio Erculiani
044365876b
[entropy.db] add EntropyRepository.retrieveContentSafetyIter()
2012-07-28 18:07:46 +02:00
Fabio Erculiani
79b3e129f5
[entropy.client] reduce the memory footprint greatly when installing big packages
...
This commit introduces a file-based iterator that can be used for
storing package file content objects. For packages like kernel
sources, the actual memory consumption caused by holding the whole
metadata in memory was quite big and not really nice wrt memory
constrained systems (ARM?).
This commit handles most (retrieveContentSafety() is also a friend
of malloc()) of the memory hogs activities.
2012-07-28 17:05:32 +02:00
Fabio Erculiani
ed5b2640ea
[entropy.db] always commit() uncommitted transactions after _setSetting()
2012-07-28 16:37:42 +02:00
Fabio Erculiani
192bb79230
[entropy.db] always force unicode() on _setSettings() arguments
...
It looks like the "INSERT OR REPLACE" doesn't work when row elements
are non-unicode. It seems to be the "OR REPLACE" clause that is
flawed.
The outcome was that values didn't really get updated and a transaction
was left uncommitted. This commit fixes the unicode part of the
problem though.
2012-07-28 16:35:52 +02:00
Fabio Erculiani
5ece150aea
[entropy.db] add "extended" keyword argument to contentDiff()
2012-07-28 15:32:45 +02:00
Fabio Erculiani
8f4b58b449
[entropy.db] EntropyRepository.retrieveContentIter: add reverse keyword argument
2012-07-28 10:48:52 +02:00
Fabio Erculiani
7058db3f0a
[entropy.client] simplify content_file Trigger code by passing pre-made metadata
2012-07-28 10:40:29 +02:00
Fabio Erculiani
251d1afca3
[entropy.tools] use less memory when calling uncompress_tarball with huge tarballs
2012-07-28 10:14:20 +02:00
Fabio Erculiani
9c06a380f5
[entropy.client] use retrieveContentIter during Package install
2012-07-27 23:26:19 +02:00
Fabio Erculiani
abb9e515ad
[tests] fix EntropyCacher test
2012-07-27 22:30:07 +02:00
Fabio Erculiani
9e819f8083
[entropy.db] EntropyRepository: when migrating to the new schema, drop _doesColumnInTableExist cache
2012-07-27 22:21:56 +02:00
Fabio Erculiani
a116bb7a92
[entropy.db] EntropyRepository.insertContent: improve memory consumption with iterators
2012-07-27 20:38:38 +02:00
Fabio Erculiani
8e5a062755
[entropy.db] reduce contentDiff() memory footprint by using retrieveContentIter()
2012-07-27 19:37:34 +02:00
Fabio Erculiani
a8d01a482f
[entropy.client.package] reduce installed_repository() calls
2012-07-27 17:36:34 +02:00
Fabio Erculiani
ead457ef8d
[entropy.qa] use retrieveContentIter() where possible
2012-07-27 17:05:35 +02:00
Fabio Erculiani
59aaafd3c3
[entropy.db] extend retrieveContentIter() docstring with important info
2012-07-27 16:34:43 +02:00
Fabio Erculiani
d75ce83086
[entropy.db] restructure indexes
...
This commits improves the sqlite3 db indexes used optimizing them
both in terms of quantity (dropping duplicate indexes) and in terms
of quality (add missing indexes)
2012-07-27 13:26:18 +02:00
Fabio Erculiani
12efc718c0
[entropy.db] add whitespaces, remove trailing whitespaces
2012-07-26 23:07:01 +02:00
Fabio Erculiani
c8178b3cd6
[entropy.db] kill more >80 columns rows
2012-07-26 23:05:41 +02:00
Fabio Erculiani
492ace12e8
[entropy.db] drop isPackageScopeAvailable(), unused
2012-07-26 22:57:09 +02:00
Fabio Erculiani
6b95cecfdb
[entropy.db] uniform _createCompileFlagsIndex to others (catch OperationalError)
2012-07-26 22:05:05 +02:00
Fabio Erculiani
1de32aba7d
[entropy.db] kill >80 columns rows
2012-07-26 22:04:34 +02:00
Fabio Erculiani
90458f80b6
[entropy.client.services,Rigo] add support for the new get_documents() WS API
...
The new WebService get_documents() is more efficient in terms of
server resources consumption since it doesn't force the WS engine
to calculate the full result set length, which had little use anyway
in Rigo.
This commit switches entropy.client.services' DocumentList to and
reverse dependencies to use the new WS API. The older WS API will be
kept alive for a while (6 months, roughly).
2012-07-25 22:30:38 +02:00
Fabio Erculiani
4b5c06177f
Release Entropy 1.0_rc127
2012-07-23 19:23:12 +02:00
Fabio Erculiani
fa35eadf47
[entropy.fetchers] do not generate two separate requests per download
...
It has been discovered that each download() call (urllib handler)
caused the code to generate two separete HTTP requests for the same
URL. This commit hopefully fixes it without causing any regression
2012-07-23 19:20:29 +02:00
Fabio Erculiani
ef64634def
[entropy.dump] dumpobj: use temporary files, fixes possible races when MT
2012-07-23 15:47:19 +02:00
Fabio Erculiani
f301ae60c7
[entropy.graph] Graph: drop __del__ (just use destroy() instead) to help automatic GC
2012-07-23 13:10:49 +02:00
Fabio Erculiani
61950f3af0
[entropy.client.interfaces.db] sort added list to improve determinism (good for caches)
2012-07-23 13:08:25 +02:00
Fabio Erculiani
e8c6af8331
[entropy.misc] LogFile: remove __del__
2012-07-23 13:08:00 +02:00
Fabio Erculiani
defb58574d
[entropy.cache] EntropyCacher: remove __del__
2012-07-23 13:07:51 +02:00
Fabio Erculiani
db5265e3d5
[entropy.client.package] use retrieveContentIter()
2012-07-23 00:29:27 +02:00
Fabio Erculiani
a1c5e2bc12
[entropy.db] introduce retrieveContentIter()
2012-07-23 00:29:11 +02:00
Fabio Erculiani
ce4d28ef47
[entropy.client] if xcache=False, force EntropyCacher "stashing cache" to OFF
2012-07-22 19:59:37 +02:00
Fabio Erculiani
9472978e60
[entropy.cache] EntropyCacher: make possible to disable the "stashing cache" at runtime
2012-07-22 19:44:18 +02:00
Fabio Erculiani
ae94f49e79
Release Entropy 1.0_rc126
2012-07-20 12:59:20 +02:00
Fabio Erculiani
dc27444749
[entropy.server] use Server.repositories()
2012-07-19 21:10:26 +02:00
Fabio Erculiani
499aee4feb
[entropy.server] automatically cleanup the list of trashed SPM UIDs
...
This commit tries to safely reduce the amount of entries inside the
Trashed SPM UIDs table. At least, the entries are now kept under
control.
2012-07-19 21:09:10 +02:00
Fabio Erculiani
2f9fafc128
[entropy.db] EntropyRepository: create index for trashedcounters
2012-07-19 21:08:38 +02:00
Fabio Erculiani
3dc413e80f
[entropy.server] fix typo in comment
2012-07-19 20:59:48 +02:00