Commit Graph

4787 Commits

Author SHA1 Message Date
Fabio Erculiani d508ca739b [entropy.client.services.interfaces] Document: add local_document() method 2011-04-09 11:46:04 +02:00
Fabio Erculiani ce7553f089 [entropy.client.services.interfaces] add support for offline mode, making possible to obtain on-disk cached data, if available 2011-04-09 11:45:31 +02:00
Fabio Erculiani 9ec2033072 [entropy.services.client] add support for offline mode, making possible to get on-disk cached data only 2011-04-09 11:44:35 +02:00
Fabio Erculiani d8dae91056 [entropy.services.client] setup credentials ONLY after cache handling, avoid leaving credentials info in cache data 2011-04-09 00:13:43 +02:00
Fabio Erculiani a60c456b57 [tests] webservice: update fake package name 2011-04-07 10:41:27 +02:00
Fabio Erculiani a09de2eb3f [entropy.server.interfaces.db] fix packages.db.webservices file upload 2011-04-07 10:41:27 +02:00
Fabio Erculiani d2339c4ae5 [entropy.services.client] fix authstore file (the one containing credentials) handling 2011-04-05 23:22:03 +02:00
Fabio Erculiani 40a59e908e [entropy.client.interfaces.methods] catch DatabaseError exception and return failure, see bug #2312 2011-04-05 21:55:49 +02:00
Fabio Erculiani 70c70c95a0 [entropy.services.client] wrap request() calls from httplib around RequestError, when socket.error is thrown 2011-04-03 20:04:40 +02:00
Fabio Erculiani afb8463976 [tests] add Entropy Web Services final test suite 2011-04-03 16:22:45 +02:00
Fabio Erculiani e15729a08d [entropy.client.services.interfaces] fixup add_vote() and remove_document() 2011-04-03 16:22:27 +02:00
Fabio Erculiani 0d0ccc1e05 [entropy.services.client] add more information to exception (add message string) 2011-04-03 16:21:56 +02:00
Fabio Erculiani e51c68a8a3 [entropy.services.ugc.commands] commit any transaction (this is now
required)
2011-04-03 11:44:15 +02:00
Fabio Erculiani 869054b1aa [entropy.services.ugc.interfaces] sync with new SQL schema (probably last update before extintion) 2011-04-03 10:25:13 +02:00
Fabio Erculiani d701573823 [entropy.tools] fix typo in validate_branch_name() 2011-04-02 16:39:27 +02:00
Fabio Erculiani 40acfe47b6 [entropy.tools] add validate_branch_name() 2011-04-02 16:29:40 +02:00
Fabio Erculiani 49d2b4dc7f [entropy.client.services.interfaces] add DocumentList, several API improvements 2011-04-02 11:21:45 +02:00
Fabio Erculiani b5593a44ff [entropy.services.client] add some more debugging output 2011-04-02 11:20:51 +02:00
Fabio Erculiani 56a921b753 [entropy.tools] add validate_package_name() 2011-04-02 11:17:43 +02:00
Fabio Erculiani ecbd1ea10f Release Entropy 1.0_alpha41 2011-04-01 14:16:19 +02:00
Fabio Erculiani 929ca65a5e [entropy.client.interfaces.dep] fix typo in _generate_dependency_tree 2011-04-01 14:15:45 +02:00
Fabio Erculiani 9e1365f8fe Release Entropy 1.0_alpha40 2011-03-30 21:05:36 +02:00
Fabio Erculiani 01e0edf2cb [entropy.client.interfaces.dep] actually fix the "simple or dependency" matching logic 2011-03-30 21:04:27 +02:00
Fabio Erculiani b51edf9487 [entropy.client.interfaces.dep] introduce simple or-dependencies support on atom_match()
The reason is simple, in a multi-repository environment, the matching
must be forced across all the available repositories for every single
dependency, returning the first available.
Running the logic only inside EntropyRepositoryBase.atomMatch() would
have the effect of pulling in wrong dependencies in case some
are not available in every configured repository.

Example: x11-libs/libvdpau;x11-drivers/nvidia-drivers?
2011-03-30 21:02:28 +02:00
Fabio Erculiani e22e75e759 [entropy.client.interfaces.dep] add more debugging output 2011-03-30 21:02:28 +02:00
Fabio Erculiani 08de3ad55f Release Entropy 1.0_alpha39 2011-03-30 14:20:47 +02:00
Fabio Erculiani 381d95b906 [entropy.client.interfaces.dep] add inverse dependencies to graph only after the complete iteration 2011-03-29 22:32:01 +02:00
Fabio Erculiani 0098b20d89 [entropy.client.interfaces.dep] fix order for library-bump pulled in dependencies
When _lookup_library_drops() returned inverse dependent packages
those were not forced as such in the dependency graph, causing
wrong dependency order. For example, gcc:4.4 was placed after
qt-* packages, even if, given its provided libraries change
it should have gotten more priority.

NOTE: this commit also partially reverse the previous one, where
_lookup_library_breakages() was disabled.
2011-03-29 18:48:31 +02:00
Fabio Erculiani d11138c1d9 [entropy.client.interfaces.dep] some minor/trivial code cleanup 2011-03-29 18:47:22 +02:00
Fabio Erculiani 4db104d13a [entropy.client.interfaces.dep] disable _lookup_library_breakages() in dep calculation by default 2011-03-29 16:17:54 +02:00
Fabio Erculiani 9b3ede543b [entropy.client.interfaces.dep] add more debugging output to dep calculation, also use const_debug_enabled() 2011-03-29 16:14:29 +02:00
Fabio Erculiani cc1a29fec2 [entropy.client.interfaces.dep] use sha1 for hashing disk cache keys rather than hash() 2011-03-29 15:43:13 +02:00
Fabio Erculiani b39b3feaa7 [entropy.const] add const_debug_enabled function 2011-03-29 15:42:08 +02:00
Fabio Erculiani 34e0600f13 Release Entropy 1.0_alpha38 2011-03-29 13:12:12 +02:00
Fabio Erculiani 29fdb2a95f [entropy.client.interfaces.qa] make UGCErrorReportInterface repository_id constructor argument mandatory 2011-03-29 12:17:21 +02:00
Fabio Erculiani 2574df0734 [entropy.services.client] add generic HTTP parameters setup function, setting repository identifier inside the request header 2011-03-29 12:08:37 +02:00
Fabio Erculiani 0fc86754a0 [entropy.client.services.interfaces] fix get_documents() API 2011-03-29 12:08:12 +02:00
Fabio Erculiani 4502ee6727 [entropy.client.services] add "url" metadatum to Document 2011-03-28 11:32:01 +02:00
Fabio Erculiani 35d3201e3b [entropy.client.services] when dropping document cache, also drop the one generated by get_documents_by_id() 2011-03-28 10:24:42 +02:00
Fabio Erculiani 5b9a2b323d [entropy.client.services] change Document "keywords" metadatum to string (rather than list) 2011-03-28 10:23:58 +02:00
Fabio Erculiani 2d9dd61250 [entropy.client.services] add SUPPORTED_TYPES static property to Document 2011-03-28 10:23:17 +02:00
Fabio Erculiani 10b90efece Release Entropy 1.0_alpha37 2011-03-27 22:07:51 +02:00
Fabio Erculiani 0e36036c87 [entropy.db.skel] fix typo in _runTreeUpdatesMoveAction 2011-03-27 21:57:08 +02:00
Fabio Erculiani da3af942c7 [entropy.db.skel] rewrite _runTreeUpdatesMoveAction to be more robust on slot changes (on dependency strings) 2011-03-27 21:26:27 +02:00
Fabio Erculiani a2e610b4fb [entropy.db.skel] rewrite _runTreeUpdatesSlotmoveAction to be more robust on slot changes (on dependency strings) 2011-03-27 21:12:11 +02:00
Fabio Erculiani f1428adab2 [entropy.db.skel] in treeupdates routines, always use atomMatch with maskFilter turned off 2011-03-27 21:11:02 +02:00
Fabio Erculiani cffa1e600d [entropy.db.skel] use etpConst['entropyslotprefix'] instead of hardcoded ":" 2011-03-27 19:42:15 +02:00
Fabio Erculiani 4c57a839b1 [entropy.services.client] automatically cast to string base types when generating multi-part encoded POST data 2011-03-27 15:48:16 +02:00
Fabio Erculiani d232be6afc [entropy.services.client] pack up the service method name called in exceptions when possible 2011-03-27 11:10:36 +02:00
Fabio Erculiani 55d31ca75f [entropy.services.client] add all the currently declared server-side response codes 2011-03-27 11:09:36 +02:00