Commit Graph

218 Commits

Author SHA1 Message Date
Sławomir Nizio 7cf7e1f6b7 convert solo imports, with needed changes to entropy_path_loader
The module entropy_path_loader (used only for running from within the
checkout; otherwise not even installed) is made to provide the _entropy
namespace.

(Other ideas instead of this entropy_path_loader change would be to
reorganise files layout; drop support for running from the checkout as
is - and perhaps require virtualenvs; require sourcing a script that
sets PYTHONPATH. However, as implemented, it is not intrusive, and the
good part is that it is quite isolated, not used in normal usage after
installation. Basically, it only does sys.path + provides _entropy
namespace.)
2018-11-26 20:15:36 +01:00
Sławomir Nizio 252c260f06 use entropy_path_loader only for running from the checkout
After this commit alone it would not work when installed (unless module
paths are set in a special way). Next changes will introduce
installation to site-packages so no custom PYTHONPATH will be necessary.
2018-11-26 20:15:36 +01:00
Sławomir Nizio 41ba9b6d63 [*] be strict about Python modules paths being loaded
For convenience (seemingly, and it really is convenient) equo and other
tools can be run from the checkout, and Entropy modules are loaded from
the checkout. Now there is a strict separation when system paths and
when paths from the checkout are used.

It makes it a bit more robust, secure and preditable at the cost of
a little more complexity.

A pleasant side effect of this change is that it is not required to
change directory to the tool (to use non-system one), as paths in the
checkout are relative to scripts.

Imports in lib/tests were not adjusted.
2018-10-27 13:03:58 +02:00
Fabio Erculiani 9e08b70113 [equo] migrate to Solo, drop old and crufty code, peace and love 2012-11-03 23:57:25 +01:00
Fabio Erculiani 796e71e9ac [repo] migrate shebangs to /usr/bin/python 2012-08-18 16:53:32 +02:00
Fabio Erculiani cb61c3bc16 [client] always catch EOFError when using readtext() 2012-05-22 12:51:03 +02:00
Fabio Erculiani 361302c48e [equo] add "equo query list installed <repository>" as per bug 3324 2012-05-14 14:49:35 +02:00
Fabio Erculiani 2ff89e56d4 [equo] add "equo repo list" 2012-05-09 02:30:08 +02:00
Fabio Erculiani 6c1a21d1df [equo] migrate to ConfigurationUpdates class (from FileUpdates) 2012-04-06 17:00:17 +02:00
Fabio Erculiani 44194b07bf [entropy.const] drop another global variable, etpConst['packagestmpdir'] 2011-10-28 11:37:00 +02:00
Fabio Erculiani 2384fc13b0 [entropy.*] drop smartapps, goodbye crappy crap 2011-10-27 22:32:25 +02:00
Fabio Erculiani fc4452ff0a [entropy] move text_tools module from client/ to entropy package (entropy.cli) 2011-10-18 17:09:48 +02:00
Fabio Erculiani 69a0bb87e0 [entropy] move libraries/ to lib/ 2011-10-17 14:27:58 +02:00
Fabio Erculiani 87e61ecb8f [equo] drop "equo community", please use eit now (editing server.conf setting: community-mode = enable) 2011-10-17 11:26:47 +02:00
Sławomir Nizio bc4e780274 [misc] fix some typos in equo and manual pages 2011-08-20 21:15:09 +02:00
Fabio Erculiani cfa7476f9d [equo] add "--by-user" support to "equo query list installed" to list packages installed by user 2011-06-25 20:01:34 +02:00
Fabio Erculiani c224ef5f68 [equo] warn if running off a Live System 2011-05-05 10:26:59 +02:00
Fabio Erculiani 41f816ea9f [equo] add --color option, see bug #2381 2011-04-29 17:12:13 +02:00
Fabio Erculiani dded4cc602 [equo] fixup --help options indentation 2011-04-18 12:31:24 +02:00
Fabio Erculiani 80dfbcc0f2 [entropy.services] goodbye old and ugly RPC service, R.I.P. 2011-04-14 15:17:54 +02:00
Fabio Erculiani 92dd3d6f05 [equo] drop load_ugc from Client() 2011-04-10 23:13:43 +02:00
Fabio Erculiani 29fdb2a95f [entropy.client.interfaces.qa] make UGCErrorReportInterface repository_id constructor argument mandatory 2011-03-29 12:17:21 +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 3643b4affb [equo] when running with --debug, enter pdb if an exception is raised 2011-02-11 18:07:52 +01:00
Fabio Erculiani 4a3d6b0792 [equo] complete text_query refactoring, API for text apps there should be almost stable 2011-02-10 11:34:47 +01:00
Fabio Erculiani ce2842258a [equo] first chunk of cleansing inside text_query module 2011-02-10 00:41:51 +01:00
Fabio Erculiani 1408390849 [equo] export "repo vacuum" from entropy-server, fixup mirrors calls (rename db- to repo-) 2011-02-07 13:17:20 +01:00
Fabio Erculiani 23285e6c77 [entropy.server] out default_repository, in .repository() 2011-02-05 18:15:49 +01:00
Fabio Erculiani ab93aee68b [entropy.server] complete the robustness work on the package, completely drop repo=None from function args 2011-02-05 18:07:09 +01:00
Fabio Erculiani bf947d355b [reagent,equo] implement "reagent repo package-dep-check" tool
This tool helps QA checking packages against missing runtime dependencies
2011-01-01 17:22:44 +01:00
Fabio Erculiani 91468af5d9 [entropy.exceptions] move some exception to respective modules
Create entropy.transceivers.exceptions package containing transceiver
related stuff.
Create entropy.services.exceptions package containing services
related stuff.

Break API (yay!)
2010-12-03 18:20:56 +01:00
Fabio Erculiani 488e9cebf6 [equo] fix undefined reference in "equo community" code 2010-11-28 22:38:14 +01:00
Fabio Erculiani ccf38fd5e2 [equo] add --assimilate support to "equo security oscheck" to save checksums and mtimes of altered files 2010-11-28 13:12:34 +01:00
Fabio Erculiani 1842ad22b4 [equo] add "equo security oscheck", anti-rootkit tool built-in in the package manager!
This new tool compares entropy installed packages repository stored file checksums
and mtimes with live system ones and reports altered ones.

Please note:
- configuration files can expose different checksums and mtime
  obvious thing
- there can be some false positives and you manually have to check
  them
2010-11-26 19:46:27 +01:00
Fabio Erculiani 88c4724153 [equo] fix freeze in bash completion support, close bug #1940 2010-11-06 19:00:21 +01:00
Fabio Erculiani 0cfccd4267 [entropy.conf] uniform setting keys (keeping backward compat) 2010-10-08 18:20:24 +02:00
Fabio Erculiani 7932378fd5 [equo] run python with -OO 2010-09-26 14:24:55 +02:00
Fabio Erculiani 3ec599b5fe [equo] improve error report code, make it shorter and nicer to both users and developers 2010-09-25 12:30:03 +02:00
Fabio Erculiani c5747a91e6 [equo] handle OSError exception when ENOMEM (Cannot allocate memory) in exception handler 2010-09-21 13:10:22 +02:00
Fabio Erculiani b8514a9c23 [equo] do not use hardcoded error numbers but rather errno module 2010-09-21 13:07:54 +02:00
Fabio Erculiani 621740f9c8 [equo] remove --nockecksum option from "equo upgrade" and "equo install". Some people are abusing it. 2010-09-14 20:05:01 +02:00
Fabio Erculiani f9598010d1 [equo] implement developers-only feature "equo repo merge <source repos> <dest repo>"
This feature helps Entropy repository developers to simulate client
side repository status by merging packages in one repository into another.
Doing this client-side makes possible to distribute the testing effort
and avoid touching critical data server-side.
2010-09-10 23:23:05 +02:00
Fabio Erculiani 1198a24290 [entropy.*] remove "eclasses" metadata support
"eclasses" package metadata is not in use in Entropy and is too
tight with Portage. Dropping.
2010-09-04 15:26:16 +02:00
Fabio Erculiani fe18e38f32 [entropy] several QA improvements and API changes (trivial, but still) 2010-07-31 15:14:54 +02:00
Fabio Erculiani 8782df8ae1 [equo] avoid race condition in try/finally in _do_text_cleanup 2010-07-31 12:57:33 +02:00
Fabio Erculiani 7cd67e4d79 [equo] when running "equo cleanup", make sure no other Entropy instances are running 2010-07-31 12:56:47 +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 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 bf738f21ca [equo] add "--force-system" option support to "equo remove" 2010-07-19 10:08:46 +02:00