Commit Graph

3640 Commits

Author SHA1 Message Date
Fabio Erculiani c001b35a2e [entropy.client] make possible to generate reverse dependencies for available packages, add recursive argument 2010-02-02 17:55:41 +01:00
Fabio Erculiani 4d3a5be4bc [entropy.client] Client.open_repository() make possible to get installed packages repo 2010-02-02 16:50:43 +01:00
Fabio Erculiani dfa7b75d4f [entropy.db] EntropyRepository: implement basic __hash__ builtin method 2010-02-02 16:33:02 +01:00
Fabio Erculiani 5ede4afc4e [entropy.client] add support for recursive/non-recursive pkgs dep matching 2010-02-02 16:32:37 +01:00
Fabio Erculiani a0a157d28d [entropy.client.interfaces.dep] don't spam terminal printing progress status when calling calculate_updates() 2010-02-02 07:31:51 +01:00
Fabio Erculiani d7f9783ba6 [entropy.client/entropy.server] ditch any reference to sqlite ":memory:" connections, break API 2010-02-02 07:22:47 +01:00
Fabio Erculiani f34cb0136c [entropy.db] uniform EntropyRepository.search* API 2010-02-01 17:36:18 +01:00
Fabio Erculiani 4fb61510e7 [entropy.db] trivial docstring update 2010-02-01 17:23:40 +01:00
Fabio Erculiani 5b6a67f5b1 [entropy.db] remove EntropyRepository.searchSlottedPackages(), uniform search methods, add searchSlotted() 2010-02-01 17:23:04 +01:00
Fabio Erculiani 547e3edef1 [entropy.db] drop searchLicenses(), uniform to other search methods, add searchLicense() 2010-02-01 17:19:56 +01:00
Fabio Erculiani 7b5de0a68d [entropy.db] add EntropyRepository.searchPackagesByHomepage() 2010-02-01 17:19:24 +01:00
Fabio Erculiani a8abb2ea21 [entropy.db] add just_id argument to EntropyRepository.searchPackagesByDescription() 2010-02-01 17:08:21 +01:00
Fabio Erculiani 73e5418037 [entropy.client] add Client.is_entropy_package_free(), returning if a package is free as in freedom 2010-02-01 17:07:52 +01:00
Fabio Erculiani d2b73d3998 [entropy.spm] PortagePackageGroups: add "security" group 2010-02-01 15:11:02 +01:00
Fabio Erculiani 91e49c96b6 [entropy.db] API change, methods names polishing 2010-02-01 14:50:12 +01:00
Fabio Erculiani 23b11cbc89 [entropy.dump] catch SystemError exceptions on loadobj() 2010-02-01 12:48:13 +01:00
Fabio Erculiani 9acf70bfaa [entropy.spm] PortagePlugin.extract_package_metadata: move download metadatum setup further 2010-02-01 09:35:18 +01:00
Fabio Erculiani 60ce094648 [entropy.server] import EntropyCacher in module scope 2010-01-31 19:20:38 +01:00
Fabio Erculiani d25066a83b [entropy.server] use custom EntropyCacher cache directory, to not overlap Entropy Client metadata 2010-01-31 18:54:23 +01:00
Fabio Erculiani 6a46273246 [entropy.client.services.ugc] fix connect_to_service for pkg repos 2010-01-31 18:14:20 +01:00
Fabio Erculiani f4193ec827 [entropy.const] reduce RSS max entries default to sane value 2010-01-31 18:07:27 +01:00
Fabio Erculiani 16b129f636 [entropy.db] cannot use dep operator comparison for tags, it breaks the tag concept 2010-01-31 18:06:40 +01:00
Fabio Erculiani bf1a582162 [entropy.client] code style update 2010-01-31 17:45:48 +01:00
Fabio Erculiani 7243079ac9 [entropy.db] fix ~ operator handling when filtering tag results passed by atomMatch 2010-01-31 17:44:41 +01:00
Fabio Erculiani 7acc8d65b4 [entropy.client.interfaces.dep] trivial code cleanup 2010-01-31 14:24:59 +01:00
Fabio Erculiani 3fc976718a [entropy.cache] EntropyCacher: deal with EntropyCacher shutdown 2010-01-31 13:14:38 +01:00
Fabio Erculiani 8b6d6d4630 [entropy.output] TextInterface: do not colour question text by default 2010-01-31 13:14:11 +01:00
Fabio Erculiani dd03ff58b4 [entropy.db] EntropyRepository: make insertSignatures() working with older db schema 2010-01-31 10:27:59 +01:00
Fabio Erculiani 3755e24ab8 [entropy.db] EntropyRepository: store structure update execution status in class scope, and use in repr(), str(), unicode() 2010-01-31 10:24:05 +01:00
Fabio Erculiani f987640d5a [entropy.client] remove Client.validRepositories, provide Client.repositories() 2010-01-30 18:49:39 +01:00
Fabio Erculiani 06df34f41d [entropy.client] drop .clientDbconn in favour of installed_repository() 2010-01-30 18:37:39 +01:00
Fabio Erculiani 54859f7ff7 [entropy.client.interfaces.package] add missing os.close() 2010-01-30 17:25:59 +01:00
Fabio Erculiani df6a8ef14b [entropy.services.ugc.commands] report_error: also save "lsof" metadata to file 2010-01-30 17:16:16 +01:00
Fabio Erculiani da36b44ada [entropy.qa] ErrorReportInterface, also collect lsof data 2010-01-30 17:14:22 +01:00
Fabio Erculiani da2f2f6cc0 [entropy.tools] fix print_exception frame data collection 2010-01-30 17:09:12 +01:00
Fabio Erculiani f5b016a146 [entropy.db] make EntropyRepository process-safe and thread-safe at the same time
This is kinda experimental but it seems to work just fine and, at the moment
there are no multithreaded accesses to EntropyRepository.
This patch makes write mutex in EntropyRepository useless because EntropyRepository
will automatically allocate new connections and cursors for every new
thread/pid coming in, avoiding to leak open files around.
SQLite3 is thread-safe when using one connection per thread, so... here it is!
2010-01-29 23:39:42 +01:00
Fabio Erculiani b23b3cd790 [entropy.db] doDatabaseExport: always exclude sqlite tables 2010-01-29 23:12:50 +01:00
Fabio Erculiani 4fc5c3c90d [entropy.client] fix undefined reference 2010-01-29 21:31:48 +01:00
Fabio Erculiani 200a9e6efb [entropy] make use of entropy.db.exceptions classes 2010-01-29 20:46:17 +01:00
Fabio Erculiani 988788cc7a [entropy.db] module imports reordering 2010-01-29 16:26:14 +01:00
Fabio Erculiani fc88cea45d [entropy.db.exceptions] introduce wrapped EntropyRepository exception classes 2010-01-29 16:25:27 +01:00
Fabio Erculiani ac113e6823 [entropy.client.interfaces.dep] disable previously added workaround, we now have full stack frame data 2010-01-29 14:58:18 +01:00
Fabio Erculiani 2fc1c3db17 [tests] fix test_db_insert_compare_match_tag test 2010-01-29 14:30:16 +01:00
Fabio Erculiani 5f18d8fb0f [entropy.const] make use of etpConst['entropyslotprefix'] 2010-01-29 14:05:09 +01:00
Fabio Erculiani 8f6337f297 [entropy.tools] improve print_exception, make possible to print variables in every frame 2010-01-29 13:41:23 +01:00
Fabio Erculiani 944c47dbc8 [entropy.client.interfaces.dep] code style update 2010-01-29 11:55:53 +01:00
Fabio Erculiani c2ad1c8cb5 [entropy.client] also catch OSError exception 2010-01-29 11:52:33 +01:00
Fabio Erculiani 266dbe335f [entropy.db] make reverse dependencies metadata generation a bit more bulletproof 2010-01-29 11:24:12 +01:00
Fabio Erculiani b240848b77 [entropy.client] workaround a caching check bug, will be fixed when error reporter will provide full stack 2010-01-29 10:55:29 +01:00
Fabio Erculiani ddedd2e704 [entropy.const] add package slot prefix string 2010-01-29 09:12:37 +01:00