Commit Graph

121 Commits

Author SHA1 Message Date
Fabio Erculiani
9e08d1029c [equo] text_rescue: remove useless code (do not access protected methods -- see next commit) 2011-01-23 16:41:03 +01:00
Fabio Erculiani
0e3d04cb96 [equo] improve error messages handling in text_rescue._database_check 2011-01-23 16:05:39 +01:00
Fabio Erculiani
4300322176 [entropy.client] rename Client.clientLog into Client.logger 2010-10-09 23:23:28 +02:00
Fabio Erculiani
625a9279ac [entropy.client.interfaces] improve (and change API) backup_repository() and restore_repository() reliability. Make them safe to use. 2010-10-04 16:58:49 +02:00
Fabio Erculiani
8da4e66b36 [entropy*] before calling Client.backup_repository() or Client.restore_repository(), make sure that transactions are committed 2010-10-03 13:53:45 +02:00
Fabio Erculiani
d83e644825 [entropy.client] improve usability of rescue and resurrect tools 2010-09-29 12:19:23 +02:00
Fabio Erculiani
2531888516 [entropy.db] deprecate EntropyRepositoryBase.commitChanges() in favour of commit() 2010-09-28 11:13:12 +02:00
Fabio Erculiani
caff8cc759 [entropy.db] rename EntropyRepositoryBase.closeDB() to EntropyRepositoryBase.close() keeping backward compatibility 2010-09-21 14:03:44 +02:00
Fabio Erculiani
c26d90fb20 [entropy.tools] move entropy package strings manipulation functions to entropy.dep 2010-09-15 22:06:39 +02:00
Fabio Erculiani
ec94cceacd [entropy.tools] start moving Entropy dependency handling functions to entropy.dep module 2010-09-14 09:49:34 +02:00
Fabio Erculiani
7888475850 [entropy.db] EntropyRepository: rename validateDatabase() to validate(), deprecate validateDatabase() 2010-08-08 11:06:29 +02:00
Fabio Erculiani
291cf97f02 [equo] handle OperationalError exceptions on listAllPackageIds() in text_rescue._database_check() 2010-08-08 10:37:42 +02:00
Fabio Erculiani
0f42721e43 [equo] text_rescue: acquire Entropy locks when needed 2010-08-01 01:16:20 +02:00
Fabio Erculiani
c288cd80b6 [entropy.db] remove reverse dependencies SQL, generate reverse dependencies metadata dynamically (also using on-disk cache)
This avoids repository database write access requirements and
improves reverse dependencies metadata reliability.
2010-07-29 19:34:04 +02:00
Fabio Erculiani
5bab482ed9 [equo] avoid race condition when calling Client.shutdown() in finally context 2010-07-21 18:13:18 +02:00
Fabio Erculiani
8c7763f774 [entropy.client] move packages cache directory to /var/lib/entropy/client/packages
This allows easier NFS sharing over home networks. Previously,
paths were /var/lib/entropy/packages{-nonfree,-restricted,}.
Please note that if you want to share Entropy packages in a
larger infrastructure, it's advised to rsync the whole Entropy
mirror and serve your cache via FTP/HTTP/FILE protocols adding
the URI to repositories.conf.
2010-07-21 08:57:12 +02:00
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
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
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
7dfa627188 [equo/reagent/sulfur] use Client.shutdown() instead of Client.destroy() 2010-03-30 19:32:28 +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
611ee32670 [entropy.client/entropy.server] make Entropy Server interface a subclass of Entropy Client 2010-03-07 22:17:07 +01:00
Fabio Erculiani
91e49c96b6 [entropy.db] API change, methods names polishing 2010-02-01 14:50:12 +01:00
Fabio Erculiani
1f7a6cc5e2 [equo] fix regression coming from Client.installed_repository() function introduction 2010-02-01 12:47:14 +01:00
Fabio Erculiani
06df34f41d [entropy.client] drop .clientDbconn in favour of installed_repository() 2010-01-30 18:37:39 +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
87033a262d [equo] fix "equo database restore" and "equo database backup" tools 2010-01-23 00:07:54 +01:00
Fabio Erculiani
02837597c6 [entropy.tools] more module API rework work done 2010-01-20 12:55:04 +01:00
Fabio Erculiani
f6826592fb [entropy.spm] when get_installed_package_metadata fails, raise KeyError and handle it 2010-01-17 12:19:49 +01:00
Fabio Erculiani
d8c28b84a1 [entropy.tools] move backup_client_repository away from entropy.tools 2010-01-15 16:10:35 +01:00
Fabio Erculiani
40f090310b [entropy.output] rename TextInterface.inputBox into input_box 2010-01-11 18:05:47 +01:00
Fabio Erculiani
41212188f5 [entropy.output] rename TextInterface.askQuestion into ask_question 2010-01-11 17:59:26 +01:00
Fabio Erculiani
e57b064121 [entropy*] big caching routines cleanup, drop old and duplicated code 2010-01-02 15:00:27 +01:00
Fabio Erculiani
f8c1b987da [equo] ETP_LOGLEVEL_NORMAL is not available anymore 2009-12-29 19:38:36 +01:00
Fabio Erculiani
8046b29491 [entropy*] several updates, etpCache removal, code cleanup, API changes 2009-12-29 19:36:32 +01:00
Fabio Erculiani
f9f3d4c729 [entropy.*] reorganize etpCache (remove/move stuff in respective classes) drop old vars from entropy.const 2009-12-28 07:58:19 +01:00
Fabio Erculiani
fb9f180f8c [equo] some more code cleanup and polishing 2009-12-23 21:51:47 +01:00
Fabio Erculiani
1597ea2fc4 [equo] some more code cleanup and polishing 2009-12-22 20:29:08 +01:00
Fabio Erculiani
1aedb9fafb [entropy*] several code cleanup, tweakings and small API changes/polishing 2009-12-22 17:02:50 +01:00
Fabio Erculiani
7309d1446d [entropy*] move sabayonlinux.org domain info to sabayon.org, move more distro specific info to entropy.const 2009-12-21 23:50:31 +01:00
Fabio Erculiani
32230aee42 [entropy] add support for build dependencies, entropy will now store them in repos (future task: make possible to install build deps too) 2009-12-20 22:32:28 +01:00
Fabio Erculiani
8638002785 [equo] fix "equo --info" 2009-12-01 23:22:28 +01:00
Fabio Erculiani
291a7c85cb [entropy.db] move more server/client-side stuff away from EntropyRepository 2009-11-09 18:39:37 +01:00
Fabio Erculiani
1ae46d6a49 [equo] fix xpak libs usage 2009-11-05 22:58:05 +01:00
Fabio Erculiani
11f798c23c [entropy.client] remove get_repository_db_file_checksum, not used anymore 2009-10-10 23:22:28 +02:00
Fabio Erculiani
33c005e668 [entropy] fix common idioms 2009-10-05 14:08:34 +02:00
Fabio Erculiani
e452421c7f [entropy] fix whitespace after comma 2009-10-05 14:05:32 +02:00