aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-09-08 13:22:37 +0200
committerMax Magorsch <arzano@gentoo.org>2020-09-08 13:22:37 +0200
commit48acaa6bacb8c3886b191e964d96605c4c101ebd (patch)
treea058b01945e613333700415ad516556f2a6f9f18
parentImprove the ignored repositories for repology (diff)
downloadsoko-48acaa6bacb8c3886b191e964d96605c4c101ebd.tar.gz
soko-48acaa6bacb8c3886b191e964d96605c4c101ebd.tar.bz2
soko-48acaa6bacb8c3886b191e964d96605c4c101ebd.zip
Don't show !test? ( test )
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rw-r--r--pkg/portage/repository/version.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/portage/repository/version.go b/pkg/portage/repository/version.go
index b752f18..8bfdf91 100644
--- a/pkg/portage/repository/version.go
+++ b/pkg/portage/repository/version.go
@@ -98,7 +98,7 @@ func updateModifiedVersion(changedFile string) {
useflags = strings.Split(strings.ReplaceAll(metadata, "IUSE=", ""), " ")
case strings.HasPrefix(metadata, "RESTRICT="):
- restricts = strings.Split(strings.ReplaceAll(metadata, "RESTRICT=", ""), " ")
+ restricts = strings.Split(strings.ReplaceAll(strings.ReplaceAll(metadata, "RESTRICT=", ""), "!test? ( test )", ""), " ")
case strings.HasPrefix(metadata, "PROPERTIES="):
properties = strings.Split(strings.ReplaceAll(metadata, "PROPERTIES=", ""), " ")