diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-01-13 23:30:58 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-01-13 23:30:58 +0200 |
commit | 14e95205e08453d9dce26cce803f1a877191961a (patch) | |
tree | c0d72e58b459209f3a8781115b87451133106866 /tests | |
parent | add __main__.py file (diff) | |
download | pkgdev-14e95205e08453d9dce26cce803f1a877191961a.tar.gz pkgdev-14e95205e08453d9dce26cce803f1a877191961a.tar.bz2 pkgdev-14e95205e08453d9dce26cce803f1a877191961a.zip |
commit: use same summary for multiple ebuilds
If 2 or more ebuilds are being modified, and same summary is generated
for both of them, use it for both ebuilds instead of giving up.
Reported-by: Joonas Niilola <juippis@gentoo.org>
Resolves: https://github.com/pkgcore/pkgdev/issues/116
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scripts/test_pkgdev_commit.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/scripts/test_pkgdev_commit.py b/tests/scripts/test_pkgdev_commit.py index 7b2eb61..7ca9c0d 100644 --- a/tests/scripts/test_pkgdev_commit.py +++ b/tests/scripts/test_pkgdev_commit.py @@ -448,7 +448,7 @@ class TestPkgdevCommit: # multiple additions repo.create_ebuild('cat/pkg-2') - repo.create_ebuild('cat/pkg-3') + repo.create_ebuild('cat/pkg-3', eapi=6) repo.create_ebuild('cat/pkg-4', eapi=6) assert commit() == 'cat/pkg: add 2, 3, 4' @@ -464,9 +464,10 @@ class TestPkgdevCommit: ) assert commit() == 'cat/pkg: add 5, drop 4' - # bump EAPI + # bump EAPI for multiple versions, same summary repo.create_ebuild('cat/pkg-6', eapi='6') git_repo.add_all('cat/pkg-6') + repo.create_ebuild('cat/pkg-3', eapi='7') repo.create_ebuild('cat/pkg-6', eapi='7') assert commit() == 'cat/pkg: update EAPI 6 -> 7' |