Fabio Erculiani
d0f86c3e8d
[equo] use etpConst['spmetprev'] and etpConst['spmdbid']
2012-04-16 22:41:35 +02:00
Fabio Erculiani
2f475115a0
[equo] use Client.installed_repository_path()
2012-04-12 12:48:43 +02:00
Fabio Erculiani
898294d0f2
[equo] force digest = "0" when regenerating packages
...
During installed packages repository generation, try to use older
digest value (from previous repo db) or force it to "0".
This way, packages with invalid digest will not be considered
during dependency calculation if they're already up-to-date.
2012-01-24 20:47:54 +01:00
Fabio Erculiani
44194b07bf
[entropy.const] drop another global variable, etpConst['packagestmpdir']
2011-10-28 11:37:00 +02:00
Fabio Erculiani
cd8d70728d
[entropy] simplify entropy locks management code, drop non-atomic functions
2011-10-05 10:44:42 +02:00
Fabio Erculiani
d200b3724c
[entropy.db] EntropyRepositoryBase: directly handle install repository metadata
2011-06-25 23:37:22 +02:00
Fabio Erculiani
8c247b94e2
[entropy.db] EntropyRepository: move sqlite's integrity_check() to EntropyRepository.integrity_check()
2011-06-25 19:45:55 +02:00
Fabio Erculiani
b0b8d3151d
[equo] text_rescue: small reliability update
2011-06-25 19:27:02 +02:00
Fabio Erculiani
d42e2a144d
[equo] text_rescue: "equo rescue spmsync", drop "Are you ready?" question
2011-06-19 12:46:41 +02:00
Fabio Erculiani
ffc654e448
[equo] "rescue check", make code path more error-safe, see bug #2312
2011-04-05 22:01:27 +02:00
Fabio Erculiani
4f7e968e78
[entropy.client] Client: drop "noclientdb" argument (yay API break), replace with installed_repo, same (reversed) logic.
2011-03-05 16:39:03 +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
53a871ef0d
[entropy.db] EntropyRepository, EntropyRepositoryBase: only return package_id from addPackage() and handlePackage()
2011-03-04 21:14:12 +01:00
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