Commit Graph

199 Commits

Author SHA1 Message Date
Fabio Erculiani
574a30bd98 [eit.commands.command] add missing import 2014-01-28 14:39:16 +01:00
Fabio Erculiani
976c5e72c4 [eit.commands.command] make possible to avoid dealing with the Entropy Resources Lock 2014-01-28 14:00:15 +01:00
Fabio Erculiani
1e16119560 [eit.commands] remove leading ">>" string from ask_question() message. 2013-12-16 19:53:36 +01:00
Fabio Erculiani
53cbf979c5 [eit.commands.cp] make sure to open the source repository in rw
This will trigger treeupdates and the collected package identifiers
will not become stale.
2013-12-16 16:26:27 +01:00
Fabio Erculiani
a8e902b0a5 [eit.commands] rename call_unlocked to call_shared, call_locked to call_exclusive 2013-12-12 22:17:36 +01:00
Fabio Erculiani
e47db9bfd7 [eit.utils] use the public message header variable 2013-12-12 19:27:31 +01:00
Fabio Erculiani
ebf63e6060 [entropy.locks] fix shared/exclusive locking mix due to reentrancy, add tests 2013-12-08 16:15:39 +01:00
Fabio Erculiani
1917771b54 [entropy.locks] move Entropy Resources Lock code to a separate module 2013-12-08 14:37:57 +01:00
Fabio Erculiani
81dca7339e [eit.commands.command] use the Entropy class object to acquire the Entropy Resources Lock 2013-12-05 22:19:21 +01:00
Fabio Erculiani
e406a4edaa [entropy.*] create new dependencies metadata "pkg_dependencies"
The old "dependencies" metadata is deprecated. It was found that
the generated metadata might get corrupted by colliding atom strings.
The new implementation avoids collisions completely and is more
efficient.
2013-11-29 19:15:44 +01:00
Fabio Erculiani
421b65ab3a [eit.commands.commit] use map() instead of filter() in installed packages scan 2013-11-19 21:19:27 +01:00
Fabio Erculiani
b36119bd55 [eit.commands.commit] start counting from 1 2013-11-19 18:33:51 +01:00
Fabio Erculiani
8d6002edaf [eit.commands.commit] commit data only when something changed 2013-11-18 15:29:03 +01:00
Fabio Erculiani
704e5c8765 [eit.commands.commit] refactor _commit(), divide the function into multiple sub-functions 2013-11-18 12:28:08 +01:00
Fabio Erculiani
715251d062 [eit.commands.commit] start splitting _commit() method 2013-11-18 11:30:18 +01:00
Fabio Erculiani
85d5608562 [eit.commands.commit] make "eit repack" not fall back to packages scanning 2013-11-18 11:06:48 +01:00
Fabio Erculiani
b70d9c2f29 [eit.commands.commit] make "eit repack" smarter and more reliable 2013-11-18 10:59:16 +01:00
Fabio Erculiani
384db92b17 [eit.commands.commit] improve output function usage 2013-11-18 10:44:21 +01:00
Fabio Erculiani
764b215278 [eit.commands.{mv,cp}] add support for package sets 2013-10-16 11:47:14 +02:00
Fabio Erculiani
9426900ccc [eit.commands.log] drop access() usage 2013-09-18 08:57:32 +02:00
Fabio Erculiani
fd981bacb9 [eit.commands.inject] drop access() usage 2013-09-18 08:56:35 +02:00
Fabio Erculiani
5793020aad [eit.main] use _exit() rather than SystemExit() exception.
The former is reentrant and safe to be used in signal handlers.
2013-09-05 19:22:40 +02:00
Fabio Erculiani
51ea669c02 [server] deal with Python bug #16308 2013-08-23 10:58:04 +02:00
Fabio Erculiani
6a249d4f11 [eit.commands.command] call shutdown() before releasing locks
shutdown() calls EntropyCacher.sync() and stop()...
2013-08-10 11:02:17 +02:00
Fabio Erculiani
bc4d4bd49f [eit] add "eit query required" command 2013-07-18 19:02:25 +02:00
Fabio Erculiani
aefbb2d665 [entropy.server,eit] add support for eit push --force 2013-07-17 10:51:52 +02:00
Fabio Erculiani
5afdea550d [eit.commands] EitCommand: reset repositories states after lock acquisition 2013-07-16 16:07:32 +02:00
Fabio Erculiani
6d741292b6 [eit.commands.query] fix variable name clashing 2013-06-25 09:36:54 +02:00
Fabio Erculiani
85302b7253 [eit] dump local variables for every stack frame if an exception occurs 2013-06-03 13:14:13 +02:00
Fabio Erculiani
897799201f [eit] wait indefinitely to acquire the resources lock using a spinner 2013-05-03 09:12:51 +02:00
Fabio Erculiani
75254b5602 [eit.commands.{push,pull}] add --conservative support 2013-04-05 16:07:45 +01:00
Fabio Erculiani
fa634ad2e1 [eit.commands.{cp,mv}] add --conservative flag that disables implicit tree updates 2013-04-05 14:37:45 +01:00
Fabio Erculiani
35252b91e6 [eit.commands.{add,commit}] add --conservative flag that disables implicit tree updates 2013-04-05 14:34:53 +01:00
Fabio Erculiani
763ca45a54 [eit.commands.command] add _entropy_class() method 2013-04-05 14:32:33 +01:00
Fabio Erculiani
a3e717f031 [eit.commands.pull] make sure to generate the database index when pulling 2013-04-05 13:01:04 +01:00
Fabio Erculiani
8d0229d3c9 [eit.commands.log] fix bzless path, bzless moved from /bin to /usr/bin 2013-03-30 23:20:53 +00:00
Fabio Erculiani
b4a5201b62 [eit] add "eit repo add" and "eit repo remove" commands (and move "eit repo" to "eit repo show") 2013-03-30 12:52:54 +00:00
Fabio Erculiani
cdeedfe483 [eit] main: do not execute command if not allowed 2013-03-30 11:51:28 +00:00
Fabio Erculiani
a5f447431c [eit] utils: if sha1 or sha256 hashes are not available, print N/A 2013-03-29 17:40:56 +00:00
Fabio Erculiani
d6295b3e00 [entropy*] create const_mkstemp() as tempfile.mkstemp() wrapper.
using /tmp as TMPDIR is a no go, since on modern systems, /tmp is on
tmpfs with a very limited amount of fs size assigned. Use /var/tmp/entropy
(or /var/tmp as fallback) instead.
2013-03-29 12:09:17 +00:00
Fabio Erculiani
7f24231978 [eit.utils] print_package_info: also print SHA1, SHA256 and GPG info 2013-03-20 15:07:49 +00:00
Fabio Erculiani
1e53daf23d [eit] monkey patch argparse.ArgumentParser to fix UTF-8 strings handling
See bug 4049.
2013-03-11 01:02:22 +00:00
Fabio Erculiani
a1e59c352f [server] fix --help output when redirected through pipes, fix bug 4049 2013-03-08 12:55:59 +01:00
Fabio Erculiani
983b72d6a7 [eit] add --pretend support to push, pull and cleanup commands 2013-03-02 18:37:14 +00:00
Fabio Erculiani
9eb56dbc14 [entropy.const] drop several etpConst constants, replace with more OO vars
etpConst['clientdbid'] is kept for backward compatibility, but will be removed soon
While etpConst['serverdbid'] and etpConst['clientserverrepoid'] are gone.
2013-02-20 00:56:52 +00:00
Fabio Erculiani
19758885be [eit.commands.test] if "eit test deps" reports missing deps, return != 0 2013-02-09 14:52:04 +00:00
Fabio Erculiani
943e91f74d [eit] convert all the sys.argv elements to unicode in main()
This avoids potential issues with entropy.db and other entropy.server
components.
2012-12-01 19:16:26 +01:00
Fabio Erculiani
45314881e7 [eit] fix print_table() usage in "eit status" 2012-11-11 14:01:38 +01:00
Fabio Erculiani
280a7067b3 [entropy.cli] drop module, move code to client/ and server/
Even though it is a small code duplication, entropy.cli does make
much less sense.
2012-11-04 21:11:56 +01:00
Fabio Erculiani
d166690c35 [eit.commands.lock] validate repository_id in "eit lock" and "eit unlock" 2012-09-08 20:11:22 +02:00