Commit Graph

166 Commits

Author SHA1 Message Date
Fabio Erculiani 9c6782e21c [entropy.client.interfaces.repository] major Repository class rework
:: move repository update logic inside EntropyRepositoryBase.update()
   static method
:: provide two new static methods EntropyRepositoryBase.revision()
   and EntropyRepositoryBase.remote_revision() that have to be
   implemented by subclasses if they are supporting fetching local
   or remote revision.
:: several minor code quality improvements
2010-06-26 19:15:02 +02:00
Fabio Erculiani 5a28e28e09 [entropy.client] fix Client.open_generic_repository arguments 2010-06-07 18:39:42 +02:00
Fabio Erculiani e1e76d5b28 [entropy.db] first chunk of major entropy.db code updates, create abstract class, move logic there, update API 2010-06-07 17:56:05 +02:00
Fabio Erculiani c9790ce36a [entropy.client/equo] add "equo query mimetype" support
User can now search for packages providing a specific mimetype,
which means, telling the user what application can be used to
open his/her files.
Add two now entropy.client.interfaces.Client methods:
  - list search_installed_mimetype(string mimetype)
  - list search_available_mimetype(string mimetype)
2010-05-02 23:49:44 +02:00
Fabio Erculiani 37fb97de01 [entropy*] kill SystemSettings attribute of Entropy Client and Entropy Server instances 2010-04-14 14:56:17 +02:00
Fabio Erculiani ff2eb4f444 [entropy.output/API] rename "type" argument of TextInterface.output to "level" 2010-04-14 14:30:51 +02:00
Fabio Erculiani 9e3e49ee56 [entropy.client.interfaces.methods] Client.get_licenses_to_accept: cope with broken EntropyRepository instances 2010-04-02 14:31:30 +02:00
Fabio Erculiani c59edaffe0 [entropy.client.interfaces.methods] complete module refactoring 2010-03-23 20:46:38 +01:00
Fabio Erculiani 0fafa52dbc [entropy.client] more refactoring work in entropy.client.interfaces.methods 2010-03-14 15:54:41 +01:00
Fabio Erculiani 38c8f33f61 [entropy.client] more refactoring work in entropy.client.interfaces.methods 2010-03-13 22:19:44 +01:00
Fabio Erculiani e9ae2fd188 [entropy.client] more module refactoring work 2010-03-10 07:20:52 +01:00
Fabio Erculiani 611ee32670 [entropy.client/entropy.server] make Entropy Server interface a subclass of Entropy Client 2010-03-07 22:17:07 +01:00
Fabio Erculiani f510cca108 [entropy.client.interfaces.dep] complete module refactoring 2010-03-03 15:26:52 +01:00
Fabio Erculiani 80bd1e01b0 [entropy.client] remove hackish etpSys['unittest'] support 2010-02-13 19:22:37 +01:00
Fabio Erculiani 1c50c0177f [entropy.client] tweak warning message 2010-02-13 19:01:33 +01:00
Fabio Erculiani 08708e3730 [entropy.client] add "temp_file" argument to open_temp_repository 2010-02-13 18:53:19 +01:00
Fabio Erculiani b39cea591a [entropy.client] code style update 2010-02-13 18:53:10 +01:00
Fabio Erculiani dc00519711 [entropy.client] remove debugging output 2010-02-11 15:13:08 +01:00
Fabio Erculiani 11539a75f0 [entropy.client] some trivial fixes for unit testing module 2010-02-11 15:11:59 +01:00
Fabio Erculiani b7951c4f4c [entropy.client] code style update 2010-02-05 14:04:58 +01:00
Fabio Erculiani d31273ffd8 [entropy.client] move Entropy Package Sets interface to separate class, update API 2010-02-05 11:50:51 +01:00
Fabio Erculiani db8876237b [entropy.client] make QA and Security interface handling methods private 2010-02-04 20:29:14 +01:00
Fabio Erculiani 708e8ea89d [entropy.exceptions] ditch IncorrectParameter exceptions 2010-02-04 20:14:33 +01:00
Fabio Erculiani b8c9b04083 [entropy.exception] ditch InvalidData exception in favour of AttributeError 2010-02-04 20:04:36 +01:00
Fabio Erculiani 7c7f384d41 [entropy.client] rename some Client methods, uniform to the rest of API 2010-02-03 12:54:14 +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 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 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 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 200a9e6efb [entropy] make use of entropy.db.exceptions classes 2010-01-29 20:46:17 +01:00
Fabio Erculiani 5f18d8fb0f [entropy.const] make use of etpConst['entropyslotprefix'] 2010-01-29 14:05:09 +01:00
Fabio Erculiani 41dd399b37 [entropy.client] rename client_repository() to installed_repository() 2010-01-29 09:06:30 +01:00
Fabio Erculiani 503b8f83a0 [entropy.client] unbundle hardcoded strings in add_package_to_repos, do not use etpSys 2010-01-29 08:53:34 +01:00
Fabio Erculiani d328b58933 [entropy.client] update signature of _add_plugin_to_client_repository()
Add repo_id argument, which value will be added to EntropyRepositoryPlugin
metadata under "repo_name" key
2010-01-29 08:52:41 +01:00
Fabio Erculiani c658b5288f [entropy.client] add client_repository() method, will replace .clientDbconn 2010-01-29 06:55:29 +01:00
Fabio Erculiani ee2814d0c3 [entropy.client] catch closeDB() exceptions and write to stderr 2010-01-28 09:55:50 +01:00
Fabio Erculiani b0216f343e [entropy.client/entropy.server] cleanup and fixes aimed to make downloads from -nonfree dir working
:: removed etpConst['packagesbindir']
:: cleaned up entropy.client.interfaces.fetch, branch argument not
   needed anymore, dropped
:: moved some minor functions to entropy.server (not required in
   entropy.client anymore)
2010-01-28 09:30:46 +01:00
Fabio Erculiani 1fc2602bae [entropy.tools] first run of entropy.tools module/API cleanup done 2010-01-25 18:20:34 +01:00
Fabio Erculiani ab37c3377c [entropy.client] using static variable as caching dicts causes issues to Singleton Client subclasses, so drop them 2010-01-24 23:37:16 +01:00
Fabio Erculiani 10930e409e [entropy.client] improve usability of restore_database and backup_database functions 2010-01-23 00:07:18 +01:00
Fabio Erculiani 5eb3142ba4 [entropy.tools] another set of module API moves and etpConst['entropytagprefix'] adoption 2010-01-22 14:04:52 +01:00
Fabio Erculiani 6790480afe [entropy.client] some atomic updates to repositories cache handling code 2010-01-16 18:11:52 +01:00
Fabio Erculiani 9b5aa1a2c5 [entropy.tools] more entropy.tools module cleanup work 2010-01-15 20:08:08 +01:00
Fabio Erculiani a6e41cffe5 [entropy.tools] start module refactoring and API docs merge 2010-01-14 18:35:14 +01:00
Fabio Erculiani 8f94c4a8b4 [entropy.output] TextInterface: rename updateProgress into output 2010-01-11 17:38:55 +01:00
Fabio Erculiani ec2293f240 [entropy.const] move etpConst['cache_ids'] to EntropyCacher 2010-01-02 23:51:27 +01:00
Fabio Erculiani 6e65a7a88e [entropy*] move cache functions to EntropyCacher, remove spaghetti code around 2010-01-02 15:36:27 +01:00
Fabio Erculiani e57b064121 [entropy*] big caching routines cleanup, drop old and duplicated code 2010-01-02 15:00:27 +01:00