Commit Graph

4667 Commits

Author SHA1 Message Date
Fabio Erculiani 460feed400 Release Entropy 1.0_alpha27 2011-03-05 13:19:04 +01:00
Fabio Erculiani fb1e3d253c [entropy.client.interfaces.methods] handle possible race conditions in get_package_action() 2011-03-05 13:04:07 +01:00
Fabio Erculiani 58324c99eb [entropy.tools] move acquire_entropy_locks, release_entropy_locks from text_tools to entropy.tools 2011-03-05 12:58:00 +01:00
Fabio Erculiani 809f3f46fa Revert "[entropy.db] enforce inter-process concurrency, use SQLite3 db files with EXCLUSIVE locking mode."
This reverts commit 4b689cc619.
2011-03-05 12:38:38 +01:00
Fabio Erculiani 7d49974fcf Revert "[entropy.db] EntropyRepository: reduce lock acquisition timeout to 10 seconds"
This reverts commit 668f64a4ee.
2011-03-05 12:38:37 +01:00
Fabio Erculiani aba51202ff Revert "[entropy.exceptions] introduce RepositoryLocked exception, raised (and never caught) if EntropyRepository repository data structures are exclusively locked"
This reverts commit c3d5bbef4d.
2011-03-05 12:38:35 +01:00
Fabio Erculiani a89d9b3a09 Revert "[entropy.db] raise RepositoryLocked if repository is locked, on validate()"
This reverts commit f4648760ba.
2011-03-05 12:38:30 +01:00
Fabio Erculiani f4648760ba [entropy.db] raise RepositoryLocked if repository is locked, on validate() 2011-03-05 12:25:48 +01:00
Fabio Erculiani c3d5bbef4d [entropy.exceptions] introduce RepositoryLocked exception, raised (and never caught) if EntropyRepository repository data structures are exclusively locked 2011-03-05 12:15:16 +01:00
Fabio Erculiani 668f64a4ee [entropy.db] EntropyRepository: reduce lock acquisition timeout to 10 seconds 2011-03-05 11:47:07 +01:00
Fabio Erculiani 4b689cc619 [entropy.db] enforce inter-process concurrency, use SQLite3 db files with EXCLUSIVE locking mode. 2011-03-05 11:45:37 +01:00
Fabio Erculiani 828879dd9b [entropy.const] add support to ETP_NO_PID_HANDLING (which is the same of --no-pid-handling argv) 2011-03-05 11:27:48 +01:00
Fabio Erculiani ae32d736fc [entropy.server] make use of CachedRepository too, required in order to be 100% compliant with Entropy Client methods 2011-03-05 00:22:04 +01:00
Fabio Erculiani 96d8deb0d2 [entropy.client] avoid calling close() on cached repositories and make the cache explode, improve constraints on repository objects 2011-03-05 00:04:59 +01:00
Fabio Erculiani 53d58728c7 [entropy.tools] drop deprecated functions that have been moved to entropy.dep several months ago 2011-03-04 22:16:09 +01:00
Fabio Erculiani 53a871ef0d [entropy.db] EntropyRepository, EntropyRepositoryBase: only return package_id from addPackage() and handlePackage() 2011-03-04 21:14:12 +01:00
Fabio Erculiani a416806047 [entropy.spm] ensure that 'needed' metadatum is always tuple 2011-03-04 21:12:22 +01:00
Fabio Erculiani 78851c478e [entropy.client] optimize Client.add_repository() and Client.remove_repository() 2011-03-04 18:37:25 +01:00
Fabio Erculiani 12351fd33e [entropy.client.interfaces.dep] introduce calculate_masked_packages(), fixup calculate_available_packages() code 2011-03-04 13:13:50 +01:00
Fabio Erculiani 5149e88027 [entropy.client] improve cache hash generation, general cache handling and updates calculation
This commit avoids package file repositories to be pulled in as
updates. These kind of repositories can't be used outside single or
multiple package installations (which metadata is provided by package
files).
2011-03-04 00:29:57 +01:00
Fabio Erculiani e5800553bd [entropy.db] EntropyRepositoryBase: add mtime() method (and implement it) 2011-03-04 00:29:01 +01:00
Fabio Erculiani 6cc360457c [entropy.server.interfaces.mirrors] when tidying mirrors, also remove .asc files 2011-03-03 17:50:34 +01:00
Fabio Erculiani d11ef3e70b Release Entropy 1.0_alpha26 2011-03-03 09:13:56 +01:00
Fabio Erculiani e36896a5ad Release Entropy 1.0_alpha25 2011-03-02 22:54:29 +01:00
Fabio Erculiani 9dc9d5138f [entropy.client.interfaces.client] fix typo in ClientSystemSettingsPlugin._drop_package_repository 2011-03-02 22:22:25 +01:00
Fabio Erculiani 7c18fc2522 [entropy.client] make package repository metadata representation more robust 2011-03-02 20:37:27 +01:00
Fabio Erculiani 78c74c72c2 [entropy.client] make package repositories (.tbz2 and .etp) able to live across SystemSettings.clear()
The issue was that, if Sulfur asked for unmasking packages,
SystemSettings.clear() was called and package repository lost.
With this patch, package repositories can live across any clear()
call, like it should be.
2011-03-02 20:17:36 +01:00
Fabio Erculiani 90a99682cd [entropy.client.interfaces.package] check if avail_data contains repository as key before referencing 2011-03-02 15:30:18 +01:00
Fabio Erculiani 56f5883669 [entropy.client.interfaces] catch EROFS in unlock_resources() 2011-03-02 09:45:44 +01:00
Fabio Erculiani aaf9e5840b [entropy.client.interfaces] add_package_to_repositories: validate package file architecture using the new way (getSettings("arch")). Keep backward compatibility. 2011-03-01 18:45:14 +01:00
Fabio Erculiani 3a6be1ec97 [entropy.tools,entropy.spm] provide hardlinks aware file size counting function and use it in entropy.spm 2011-03-01 18:32:42 +01:00
Fabio Erculiani dd5cea12d0 Release Entropy 1.0_alpha24 2011-03-01 13:13:39 +01:00
Fabio Erculiani 9c6e73e68a [entropy.server] fix typo in message, thanks to Rover Calvò 2011-02-28 09:43:59 +01:00
Fabio Erculiani 5f5e6ed936 Release Entropy 1.0_alpha23 2011-02-28 09:23:31 +01:00
Fabio Erculiani a853525ca6 [entropy.server] when pushing a new repo, also upload a signal file suitable for webinstall daemons 2011-02-28 09:22:33 +01:00
Fabio Erculiani c0f47cc8fe [entropy.db] EntropyRepository: rewrite _doesColumnInTableExist() to be more efficient 2011-02-27 23:18:52 +01:00
Fabio Erculiani 2640912720 [entropy.db] EntropyRepository: rewrite _doesColumnInTableExist usage (optimistic guessing), since it is damn slow 2011-02-27 23:14:32 +01:00
Fabio Erculiani 664e760f35 Release Entropy 1.0_alpha22 2011-02-27 19:02:10 +01:00
Fabio Erculiani 903fb39d60 [entropy.cache] MtimePingus: avoid race conditions on ping() and pong() when using entropy.dump.dumpobj() 2011-02-27 10:53:48 +01:00
Fabio Erculiani 71bd1646d0 [entropy.cache] EntropyCacher: race conditions on save() and push() can cause OSError exceptions (errno=2) on entropy.dump.dumpobj() 2011-02-27 10:52:10 +01:00
Fabio Erculiani c14dd0161d Release Entropy 1.0_alpha21 2011-02-27 01:13:25 +01:00
Fabio Erculiani fbcca73846 Release Entropy 1.0_alpha20 2011-02-27 00:11:09 +01:00
Fabio Erculiani 6db0d716a3 [entropy.db] EntropyRepository: when hashing the repo, handle the case where there is no database file 2011-02-27 00:00:01 +01:00
Fabio Erculiani 7801132610 [tests] db: improve settings management test 2011-02-26 23:52:53 +01:00
Fabio Erculiani 6cb731f63e [entropy.server] fix operation between set and list in _move_packages() 2011-02-26 23:45:38 +01:00
Fabio Erculiani d38414de29 [entropy.dep] get_entropy_newer_version(): make possible to provide different package file extension 2011-02-26 17:54:06 +01:00
Fabio Erculiani 5f32bfab82 [entropy.qa] make possible to use get_deep_dependency_list() with a single repository 2011-02-26 17:53:41 +01:00
Fabio Erculiani c35b50fadc [entropy.tools] introduce validate_repository_id() 2011-02-26 17:53:13 +01:00
Fabio Erculiani 1719e1d0c2 [entropy.db] EntropyRepository: allow any setting to be stored inside settings table 2011-02-26 17:10:31 +01:00
Fabio Erculiani b4379c6219 [entropy.tools] provide general purpose NB EX file locking/unlocking functions 2011-02-26 12:53:46 +01:00