summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-03 01:15:41 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-03 01:15:41 -0400
commit38fd4b4035957928535ddb51d305551e7beb5cba (patch)
tree67e5b4b1a926e6e5ce039d2cedbaab5dd377facc
parentb804d7de01b7428423392d4ec233a50dc862ac93 (diff)
fix "small" bugs in 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