summaryrefslogtreecommitdiff
path: root/bin/get-package-updates
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-07-05 14:33:36 +0200
committerErich Eckner <git@eckner.net>2017-07-05 14:33:36 +0200
commitb3c443f179afb0c5aa5c10788904c5e727bbfe59 (patch)
tree944070a23eebcae7c48cf695224cb404377a1a23 /bin/get-package-updates
parent0a230ca024afb0a93be22577f42aacd5d1095b44 (diff)
downloadbuilder-b3c443f179afb0c5aa5c10788904c5e727bbfe59.tar.xz
bin/get-package-updates,bin/seed-build-list: fix/clean up regex throwing out staging and testing
Diffstat (limited to 'bin/get-package-updates')
-rwxr-xr-xbin/get-package-updates5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 46b0440..7d82d78 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -178,10 +178,9 @@ for repo in ${repo_names}; do
grep '^\S\+ .\s[^/]\+/repos/[^/]\+/PKGBUILD$' | \
# ignore i686
grep -v -- '-i686/PKGBUILD$' | \
- sed 's|^\(\S\+\) \(.\)\t\([^/]\+\)/repos/\([^/]\+\)-[^/-]\+/PKGBUILD$|\2 \3 \1 \4|' | \
# ignore staging and testing
- grep -v '\(staging\|testing\)$' | \
- cat
+ grep -v -- '[-/]\(staging\|testing\)-[^/]\+/PKGBUILD$' | \
+ sed 's|^\(\S\+\) \(.\)\t\([^/]\+\)/repos/\([^/]\+\)-[^/-]\+/PKGBUILD$|\2 \3 \1 \4|'
done | \
sort -u | \
while read -r mode package git_revision repository; do