Commit Graph

11493 Commits

Author SHA1 Message Date
Fabio Erculiani
0bcf6a5885 Tagging Entropy version 317 317 2018-09-23 22:29:48 +02:00
Fabio Erculiani
a7171bdc7e Release Entropy 317 2018-09-23 22:29:48 +02:00
Fabio Erculiani
6b097b57cb [entropy.db.sql] fix comparison between different types with Py3. 2018-09-23 22:25:00 +02:00
Fabio Erculiani
e9b211eea0 [entropy.spm] improve handling of non-ascii paths (e.g. puppet-agent).
It looks like Portage now stores unicode paths correctly in its metadata
as opposed to what it used to be. We need to make sure that we parse those
"CONTENTS" file and content metadata in general using the correct encoding.
This will allow us to store and retrieve such metadata from the sqlite3
database correctly and also match the stored paths with the filesystem
paths exactly.

This commit may need a bit more real-life testing. Backward compat
wrt old Entropy and Portage tbz2 files should be as expected.
Unit tests attached.
2018-09-23 22:06:05 +02:00
Fabio Erculiani
34c549feb8 [entropy.client] handle correctly encoded file paths too.
Historically, Portage + Py2 were not dealing well with file paths that
were containing non-ascii chars. The situation has apparently improved
and we are able to accept paths with the correct encoding in Entropy
(separate patch will come). We need to guard against broken paths anyway,
so let's try to check which one of the paths is the one that has the
most chance to be the right one. Also, with python3 this won't be
a problem anymore...
2018-09-23 21:01:26 +02:00
Fabio Erculiani
c753f215d6 [entropy.db.sql] use etpConst instead of hardcoded encoding strings. 2018-09-23 20:56:04 +02:00
Fabio Erculiani
eb45950648 Tagging Entropy version 316 316 2018-09-23 15:41:49 +02:00
Fabio Erculiani
f0e6b09ee2 Release Entropy 316 2018-09-23 15:41:48 +02:00
Fabio Erculiani
afda55090e [rigo/po] update translations for Rigo. 2018-09-23 15:41:21 +02:00
Fabio Erculiani
5182a5cfea [rigo/pot] update rigo.pot 2018-09-23 15:40:45 +02:00
Fabio Erculiani
fe44bb34b2 [client/po] update .po files 2018-09-23 15:39:43 +02:00
Fabio Erculiani
adb456d498 Update entropy.pot 2018-09-23 15:39:09 +02:00
Fabio Erculiani
4040523908 [kswitch] correctly resolve external kernel modules when not using --from-running.
Due to the migration to real virtual packages (away from PROVIDE= due
to EAPI=7 constraints), we failed to resolve kernel binary packages
correctly, thus packages that require them (external kernel modules.)

This patch fixes it, by making sure that we resolve new virtuals correctly.
We expect new virtuals to list kernel packages in their RDEPEND= (runtime
dependecies.)
2018-09-23 15:37:21 +02:00
Fabio Erculiani
30ea708c4e Tagging Entropy version 315 315 2018-09-22 19:39:42 +02:00
Fabio Erculiani
a5890973b1 Release Entropy 315 2018-09-22 19:39:42 +02:00
Fabio Erculiani
2d61be2c4c [kswitch] fix kernel-switcher behavior when kernels are in external repos.
See the code documentation for more info.
2018-09-22 19:34:17 +02:00
Fabio Erculiani
9a28a9d025 [kswitch] write a more reliable list comprehension. 2018-09-22 18:23:37 +02:00
Fabio Erculiani
e319701afe [kswitch] do not rely on startswith but rather exact category matching. 2018-09-22 18:21:39 +02:00
Ettore Di Giacinto
43556ce06f Tagging Entropy version 314 314 2018-09-08 23:17:00 +02:00
Ettore Di Giacinto
d420cf5774 Release Entropy 314 2018-09-08 23:16:57 +02:00
Ettore Di Giacinto
b5cd3f6401 Merge pull request #61 from Enlik/kswitch-revdep
[kswitch] use reverse dep. not PROVIDE
2018-09-08 23:13:29 +02:00
Sławomir Nizio
1bccb28589 [ci] separate commands to file, make sure there is /usr/portage/profiles 2018-09-08 23:01:30 +02:00
Sławomir Nizio
f70b673f5e [kswitch] use reverse dep. not PROVIDE
The latter method does not work nowadays, after bumping Portage
(2.3.40-r1) or related to EAPI 7.
2018-09-08 18:32:20 +02:00
Fabio Erculiani
e84620515f Tagging Entropy version 313 313 2018-08-18 09:25:08 +02:00
Fabio Erculiani
12aafd8e5e Release Entropy 313 2018-08-18 09:25:08 +02:00
Fabio Erculiani
7e8047ccdf Merge pull request #59 from Enlik/eapi7-bdepend
[entropy.spm] add support for BDEPEND (from EAPI 7)
2018-08-18 09:24:23 +02:00
Sławomir Nizio
4463b6d425 [entropy.spm] add support for BDEPEND (from EAPI 7)
For the purpose of Entropy binary packages, they are merged with
DEPEND.
2018-08-17 23:51:40 +02:00
Ettore Di Giacinto
29bb41c1ca Merge pull request #58 from Sabayon/revert-52-master
Revert "inject: fix store of content with utf-8 chars"
2018-08-14 17:41:26 +02:00
Ettore Di Giacinto
a762d43bdc Revert "inject: fix store of content with utf-8 chars" 2018-08-11 16:13:54 +02:00
Ettore Di Giacinto
f02c6be0ba Merge pull request #57 from Sabayon/rescue
[solo.commands.rescue] trivial fixes
2018-08-07 20:22:56 +02:00
Sławomir Nizio
04c4495313 [solo.commands.rescue] trivial fixes
- Variable entropy_client was not available where it was used.
- Module entropy.dep was not imported but was used. It worked as
  the module was imported from another place, but it is better to
  import it explicitly.
2018-08-06 23:01:17 +02:00
Ettore Di Giacinto
492bab37b4 Merge pull request #56 from Enlik/docs
improve generation of and update docs
2018-08-06 22:55:03 +02:00
Sławomir Nizio
9db87b99c3 [equo, eit] update man pages 2018-08-06 22:45:32 +02:00
Sławomir Nizio
789e06c122 [solo.commands.command, equo] support "authors" in docs
Suggested by Ettore.

My comment is that it is to have a more correct information and to give
credit where it is due.
This is not a "miscredit" towards the Creator. We know who has made this
possible!
2018-08-06 22:39:42 +02:00
Ettore Di Giacinto
1962df59e9 Merge pull request #55 from Enlik/py3
[entropy.tools, tests] fix test and code with Python 3; add to CI
2018-08-06 22:29:42 +02:00
Sławomir Nizio
8643db23aa [entropy.tools, tests] fix test and code with Python 3; add to CI 2018-08-06 09:37:13 +02:00
Ettore Di Giacinto
f76c81f412 Merge pull request #54 from Enlik/tests-improvement
[tests] add lib/tests/run-nonpriv-wrapper
2018-08-05 01:03:08 +02:00
Sławomir Nizio
fabb3e72da [tests] add lib/tests/run-nonpriv-wrapper
- runs as non-root
- does not require being in entropy/portage group
    - in fact, it's better (better isolation) to run as such
- thus does not modify running system

The wrapper script is ugly but very convenient.
2018-08-05 00:40:11 +02:00
Sławomir Nizio
8af6ececaa stop ignoring lib/ in .gitignore
Including a script that will be added in the next commit.
2018-08-05 00:26:03 +02:00
Ettore Di Giacinto
2469c1d0fe Merge pull request #53 from Enlik/ci
[tests] exit with failure also on assetion errors
2018-08-04 23:56:28 +02:00
Sławomir Nizio
779d40389f [tests] exit with failure also on assetion errors 2018-08-04 23:45:12 +02:00
Ettore Di Giacinto
686f7e3ebc Merge pull request #50 from Enlik/equo-mark
[solo.commands.mark] new command
2018-08-04 23:00:31 +02:00
geaaru
83f9bbfc1c Merge pull request #52 from geaaru/master
inject: fix store of content with utf-8 chars
2018-08-04 21:40:45 +02:00
Geaaru
b9580f8244 inject: fix store of content with utf-8 chars 2018-08-04 21:09:42 +02:00
Ettore Di Giacinto
c2f66c5943 Fix README 2018-08-04 20:37:29 +02:00
Ettore Di Giacinto
36b698b74b Merge pull request #49 from Enlik/spm-by-user
[solo.commands.rescue] use world file to replicate by-user status
2018-08-04 19:55:53 +02:00
Ettore Di Giacinto
ade89ee5fa Merge pull request #51 from Sabayon/ci
add .travis.yml
2018-08-04 19:23:54 +02:00
Sławomir Nizio
85174d39fa add .travis.yml
USERNAME is needed in lib/entropy/security.py.
Added support for ETP_TESTS_NONINTERACTIVE (and skipped one test).
2018-08-04 19:05:19 +02:00
Sławomir Nizio
70f1719138 [solo.commands.mark] new command 2018-07-31 08:58:31 +02:00
Sławomir Nizio
3b7181d6c9 [solo.commands.rescue] factor out _SpmUserPackages 2018-07-30 09:11:50 +02:00