summaryrefslogtreecommitdiff
path: root/pbs-absrepo-convert
diff options
context:
space:
mode:
Diffstat (limited to 'pbs-absrepo-convert')
-rwxr-xr-xpbs-absrepo-convert5
1 files changed, 2 insertions, 3 deletions
diff --git a/pbs-absrepo-convert b/pbs-absrepo-convert
index 8e231af..efb82b8 100755
--- a/pbs-absrepo-convert
+++ b/pbs-absrepo-convert
@@ -54,12 +54,12 @@ collect-data() {
# extract some things ##################################################
# packages
{
- < "${TMPDIR}/find" sed -r 's|^\./([^/]*)/.*|\1|'
+ < "${TMPDIR}/find" sed -e 's|^\.||' -e 's|/.*||'
} | sort -u > "${TMPDIR}/packages"
# architectures
{
echo master
- < "${TMPDIR}/find" sed -e 's/.*/-/' -e '/^any$/d'
+ < "${TMPDIR}/find" sed -e 's/.*-//' -e '/^any$/d'
} | sort -u > "${TMPDIR}/architectures"
}
@@ -183,7 +183,6 @@ main() {
git clone "${cachedir}/${source}.git" "${TMPDIR}/repo"
cd "${TMPDIR}/repo"
git checkout -b orig
- git checkout master
collect-data fast
git branch -D master