summaryrefslogtreecommitdiff
path: root/pbs-absrepo-convert--list
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-02 21:56:05 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-02 21:56:05 -0400
commit06fbc63477803a7323e57fd3663937dd1be88d39 (patch)
tree5f4a13ec4220cc1c32ec00dee6a3d2802c40f24a /pbs-absrepo-convert--list
parent729b829badced801f99d048e09c46add2ebfe991 (diff)
rewrite pbs-absrepo-convert
Diffstat (limited to 'pbs-absrepo-convert--list')
-rwxr-xr-xpbs-absrepo-convert--list7
1 files changed, 7 insertions, 0 deletions
diff --git a/pbs-absrepo-convert--list b/pbs-absrepo-convert--list
new file mode 100755
index 0000000..527568a
--- /dev/null
+++ b/pbs-absrepo-convert--list
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+ls -1 > "${TMPDIR}/packages.tmp.${GIT_COMMIT}"
+find */repos/* -type d -printf '%f\n' >> "${TMPDIR}/repo-arch.tmp.${GIT_COMMIT}"
+
+mv "${TMPDIR}/packages.tmp.${GIT_COMMIT}" "${TMPDIR}/packages.new.${GIT_COMMIT}"
+mv "${TMPDIR}/repo-arch.tmp.${GIT_COMMIT}" "${TMPDIR}/repo-arch.new.${GIT_COMMIT}"