Commit Graph

32 Commits

Author SHA1 Message Date
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
1f6bd34749 [entropy] prefix package download URLs with the category directory
This makes possible to avoid directory hot spots on repository mirrors.
This commit requires some mileage and real-world testing, but it
seems to be running good on a relatively small repository.
No backward compatibility issues have been reported.
2014-02-15 19:10:16 +01:00
Fabio Erculiani
0df7092e05 [entropy.locks] drop "_lock", just "acquire" or "release", it's cleaner 2013-12-26 22:52:11 +01:00
Fabio Erculiani
ae8b91ac0c [entropy.*] s:occured:occurred: 2013-12-13 10:57:19 +01:00
Fabio Erculiani
97f18338ba [entropy.locks] move acquire_lock(), release_lock() from entropy.tools 2013-12-08 14:54:42 +01:00
Fabio Erculiani
796e71e9ac [repo] migrate shebangs to /usr/bin/python 2012-08-18 16:53:32 +02:00
Fabio Erculiani
9d665e050c [entropy.db] remove do_commit argument from methods 2012-08-12 16:00:02 +02:00
Fabio Erculiani
2d57e507db [services] repository-webinstall-generator: trivial code fix 2011-11-26 19:11:44 +01:00
Fabio Erculiani
83a5bfbc10 [services] repository-webinstall-generator: actually remove ancient .etp files 2011-11-26 19:03:42 +01:00
Fabio Erculiani
a67e30c04e [services] repository-webinstall-generator: use print_info instead of print_warning 2011-11-26 18:13:03 +01:00
Fabio Erculiani
5d39b4c423 [services] repository-webinstall-generator: execute cleanup even if no new .etp files have to be created 2011-11-26 18:09:51 +01:00
Fabio Erculiani
69a0bb87e0 [entropy] move libraries/ to lib/ 2011-10-17 14:27:58 +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
8f7268c272 [entropy.server] drop .md5 files handling support on repos, pretty useless 2011-06-20 20:23:03 +02: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
4a241f46c6 [services] repository-webinstall-generator: fix typo 2011-03-03 09:00:44 +01:00
Fabio Erculiani
b5416d0a90 [services] repository-webinstall-generator: make possible to regenerate all the .etp package files through --regen 2011-03-03 08:55:30 +01:00
Fabio Erculiani
a1229a2eb5 [services] repository-webinstall-generator: properly set .etp file repository architecture 2011-03-03 08:47:13 +01:00
Fabio Erculiani
79c2bac529 [services] repository-webinstall-generator: simplify execute_app(), payload detection and mktemp not required 2011-03-01 15:12:45 +01:00
Fabio Erculiani
43298ac0d8 [services] repository-webinstall-generator: implement LRU cache strategy 2011-02-27 23:29:39 +01:00
Fabio Erculiani
334665006f [services] repository-webinstall-generator: increase ram cache size 2011-02-27 23:21:17 +01:00
Fabio Erculiani
5adf368da3 [services] repository-webinstall-generator: remove pdb hook 2011-02-27 22:41:03 +01:00
Fabio Erculiani
e06c0bde52 [services] repository-webinstall-generator: also consider reverse dependencies when bumping or generating new .etp files 2011-02-27 22:36:39 +01:00
Fabio Erculiani
99d5cca0ee [services] repository-webinstall-generator: divide et impera, split code into sub-functions 2011-02-27 18:01:32 +01:00
Fabio Erculiani
d9b6a48194 [services] repository-webinstall-generator: improve speed even more (add caching), add repository tree updates metadata to repo 2011-02-26 19:47:15 +01:00
Fabio Erculiani
868d6e4303 [services] repository-webinstall-generator: no need to get content metadata, improve speed 2011-02-26 19:32:47 +01:00
Fabio Erculiani
dad927648e [services] repository-webinstall-generator: ensure that indexing is always True 2011-02-26 18:31:56 +01:00
Fabio Erculiani
58c9ae01b8 [services] repository-webinstall-generator: improve mkstemp usage, disable read-only
Read-only is disabled to allow createAllIndexes() to do its job.
This is required in order to improve the performance.
2011-02-26 18:25:25 +01:00
Fabio Erculiani
8e89209f99 [services] repository-webinstall-generator: some minor performance tweaks 2011-02-26 18:23:05 +01:00
Fabio Erculiani
79e13cdaa2 [services] add repository-webinstall-generator
This is a server-side tool that makes possible to generate
executable packages that can be redistributed via web, which once
extracted install the encapsulated packages
2011-02-26 17:54:40 +01:00