From 38fd4b4035957928535ddb51d305551e7beb5cba Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 3 Nov 2012 01:15:41 -0400 Subject: fix "small" bugs in pbs-absrepo-convert --- pbs-absrepo-convert | 5 ++--- 1 file 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 -- cgit v1.1-4-g5e80