Commit Graph

60 Commits

Author SHA1 Message Date
Fabio Erculiani 22fdc5026c [entropy.const] const_mkdtemp: call makedirs() only if dir=etpConst['entropyunpackdir'] 2013-03-29 12:10:24 +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 4c58fc9fbe [entropy*] create const_mkdtemp() as tempfile.mkdtemp() 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 11:41:05 +00:00
Fabio Erculiani 7bef53d99c [entropy.server] add "weak package files" support
Weak package files is a feature that makes possible to save a lot of
local space if enabled. Basically, all the package files no longer in
the repository are locally removed before their expiration. This reduces
local data redundancy with no real reliability impact.
2013-03-02 18:54:12 +00:00
Fabio Erculiani 5d315c70bd [entropy.const] drop /var/run/entropy/entropy.lock file and directory handling
This is no longer used by Entropy, which does use a more fine grained locking
instead.
2013-02-24 23:34:49 +01: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 4f8205323f [entropy.i18n] try recover from invalid filesystem encoding
This should also help with invalid UTF-8 characters returned by _()
2013-02-05 08:29:37 +00:00
Fabio Erculiani d42003ba94 Merge remote-tracking branch 'origin/solo'
Conflicts:
	client/po/bg.po
	client/po/ca.po
	client/po/cs.po
	client/po/da.po
	client/po/de.po
	client/po/entropy.pot
	client/po/es.po
	client/po/es_CL.po
	client/po/fr.po
	client/po/fr_CA.po
	client/po/it.po
	client/po/nl.po
	client/po/pl.po
	client/po/pt.po
	client/po/pt_BR.po
	client/po/ru.po
	client/po/sk.po
	client/po/sv.po
	client/po/uk.po
	client/po/zh_TW.po
	client/revision
	docs/ChangeLog
	docs/TODO
	lib/entropy/cache.py
	lib/entropy/client/interfaces/db.py
	lib/entropy/const.py
	lib/entropy/revision
	lib/entropy/spm/plugins/interfaces/portage_plugin/__init__.py
	server/revision
2012-11-06 22:35:01 +01:00
Fabio Erculiani f713f65d2d [entropy.const] etpUi is gone, const_interactive_enabled() moved to is_interactive() 2012-11-06 21:22:23 +01:00
Fabio Erculiani 0deb4464e7 [entropy.const] kill etpUi['mute'] 2012-11-06 21:16:16 +01:00
Fabio Erculiani 977ec75a01 [entropy.const] drop any etpUi['debug'] reference 2012-11-06 20:51:00 +01:00
Fabio Erculiani 15c6fc1b77 [entropy.const] drop etpUi['clean'] 2012-11-05 22:29:30 +01:00
Fabio Erculiani 9095f62f6b [entropy.const] drop etpUi['warn'] 2012-11-05 22:27:46 +01:00
Fabio Erculiani aaf2b8eee8 [entropy.const] kill etpUi['quiet'] 2012-11-05 21:40:44 +01:00
Fabio Erculiani df3c27deac [entropy*] drop etpUi usage where possible 2012-11-04 22:36:54 +01:00
Fabio Erculiani b07beb1dcd [entropy.const] drop etpConst['errorstatus'] 2012-11-04 18:35:19 +01:00
Fabio Erculiani 7cff01bbd5 [entropy.const] export "database" sub-directory constant through etpConst 2012-09-20 12:52:36 +02:00
Fabio Erculiani 3ee803c2ba [entropy.const] implement a debug watchdog thread dumper thread.
If ETP_DEBUG_WATCHDOG env variable is set, entropy.const will create
a timer thread that prints to stderr the full application thread dump.
This is quite useful in case of hard to reproduce deadlocks at the library
level.
2012-09-09 18:04:52 +02:00
Fabio Erculiani 316ef31dcd [entropy.const] do not alter etpConst['systemroot'] variable 2012-09-08 20:11:24 +02:00
Fabio Erculiani 9d1dd2f5b3 [entropy.const] move Entropy Resources Lock path to /var/lib/entropy
This commit moves the Entropy Resources Lock from:
> /var/lib/entropy/client/database/<arch>/.using_resources
to a simpler:
> /var/lib/entropy/.using_resources

The main reason for the move is to make such path more consistent across
architectures.
2012-09-08 20:11:23 +02:00
Fabio Erculiani a659ac2f66 [entropy.const] remove hardcoded slashes, rewrite paths using os.path.join() 2012-09-08 20:11:23 +02:00
Fabio Erculiani 446432c64d [entropy.const] do not alter etpConst['systemroot'] variable 2012-09-08 16:57:08 +02:00
Fabio Erculiani 627af78498 [entropy.const] move Entropy Resources Lock path to /var/lib/entropy
This commit moves the Entropy Resources Lock from:
> /var/lib/entropy/client/database/<arch>/.using_resources
to a simpler:
> /var/lib/entropy/.using_resources

The main reason for the move is to make such path more consistent across
architectures.
2012-09-08 16:34:05 +02:00
Fabio Erculiani ab9e3e9791 [entropy.const] remove hardcoded slashes, rewrite paths using os.path.join() 2012-09-08 16:28:31 +02:00
Fabio Erculiani 87f2cb6f75 [entropy.const] add const_is_python3() 2012-05-20 13:28:14 +02:00
Fabio Erculiani 38c5560b9a [entropy.const] initconfig_entropy_constants: always print dir creation warnings to stderr 2012-05-16 14:32:53 +02:00
Fabio Erculiani 91d85740a8 [entropy.const] use const_setup_directory() when creating pidfiledir 2012-05-16 14:32:53 +02:00
Fabio Erculiani fafc598928 [entropy.const] always create /var/tmp/entropy if it doesn't exist 2012-05-16 14:32:52 +02:00
Fabio Erculiani 755b2612fe [entropy.const] dump_signal: add "stderr" keyword argument 2012-05-11 06:41:20 +02:00
Fabio Erculiani 753195d15d [entropy.const] move spm magic strings and numbers to etpConst 2012-04-16 22:41:21 +02:00
Fabio Erculiani 8a3c13183a [entropy.const] do not change entropy directory permissions on every library load
The logic has been moved to Makefile and upstream ebuilds.
2012-04-14 08:34:05 +02:00
Fabio Erculiani 1084359821 [entropy.const] const_debug_write: make posible to write to arbitrary files 2012-03-29 19:07:23 +02:00
Fabio Erculiani e25ebbb59e [entropy.const] dump_signal: print stack variables if extended=True 2012-03-28 23:14:43 +02:00
Fabio Erculiani 5839d81819 [entropy.const] const_debug_write: add force argument support 2012-03-18 18:29:09 +01:00
Fabio Erculiani 63947241b4 [entropy.const] do not hardcode "raw_unicode_escape" 2012-03-04 17:57:57 +01:00
Fabio Erculiani 095038425a [entropy.const] improve thread dump signal function
Always flush stderr on a newline and also write the number of
active threads as well.
Moreover, always install the dump function at SIGQUIT when --debug
is passed.
2012-02-29 10:21:04 +01:00
Fabio Erculiani 85ebb0ebac [entropy.const] rework ETP_ARCH_CONST and keywords configuration, make it work with overridden values 2012-02-27 23:18:26 +01:00
Fabio Erculiani 642da47e40 [entropy.const] add _RAW_ENCODING and fix wrong encoding detection code 2012-02-27 19:49:13 +01:00
Fabio Erculiani a28a92c2a3 [entropy.const] do not hardcode UTF-8 string, but rather use _ENCODING 2012-02-27 19:35:15 +01:00
Fabio Erculiani 95ddc907a7 [entropy.const] make possible to override the default arch using /etc/entropy/.arch 2012-02-01 19:56:12 +01:00
Fabio Erculiani bf327ce01e [entropy.const] install debug signal handler on SIGUSR1, thread dump on SIGQUIT 2011-12-27 08:03:05 +01:00
Fabio Erculiani 146343107d [entropy.const] make possible to override ROOT from env using ETP_ROOT 2011-12-23 16:21:16 +01:00
Fabio Erculiani 8958f947d5 [entropy.const] rework automatic ARM architecture and keywords detection (will be moved to repositories.conf) 2011-12-12 15:21:52 +01:00
Fabio Erculiani 5913f4e4ff [entropy.const] use codecs.open() 2011-10-30 22:06:07 +01:00
Fabio Erculiani b80846a057 [entropy.const] drop other 4 constants from etpConst, woot 2011-10-28 14:37:03 +02:00
Fabio Erculiani 44194b07bf [entropy.const] drop another global variable, etpConst['packagestmpdir'] 2011-10-28 11:37:00 +02:00
Fabio Erculiani ba1539337d [entropy.const] add const_setup_directory() 2011-10-28 11:36:41 +02:00
Fabio Erculiani f4d2a65704 [entropy.const] drop yet another global variable, this time: etpConst['smartpackagesdir'] 2011-10-27 22:41:48 +02:00
Fabio Erculiani 2384fc13b0 [entropy.*] drop smartapps, goodbye crappy crap 2011-10-27 22:32:25 +02:00
Fabio Erculiani faaa3d5b2c [entropy.const] drop etpConst['triggersdir'] global variable 2011-10-27 22:05:27 +02:00