summaryrefslogtreecommitdiffstats
path: root/misc-scripts
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2009-05-13 11:06:06 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-05-13 22:09:41 +0200
commitc076b93fafbf47a85bd063c626621552f364a59d (patch)
treea71efa3f450dfd1fdca1ced0af06003182106ab8 /misc-scripts
parent8276b6fefffb9f092ed8713c1cf01220e21c46eb (diff)
downloaddbscripts-c076b93fafbf47a85bd063c626621552f364a59d.tar.gz
dbscripts-c076b93fafbf47a85bd063c626621552f364a59d.tar.xz
use pkgext defined in makepkg.conf
Signed-off-by: Pierre Schmitz <pierre@archlinux.de> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'misc-scripts')
-rwxr-xr-xmisc-scripts/find-dupes4
-rwxr-xr-xmisc-scripts/ftpdir-cleanup4
2 files changed, 4 insertions, 4 deletions
diff --git a/misc-scripts/find-dupes b/misc-scripts/find-dupes
index 372108f..16bf530 100755
--- a/misc-scripts/find-dupes
+++ b/misc-scripts/find-dupes
@@ -39,7 +39,7 @@ getpkgname() {
showdupes() {
done=""
- for i in *.pkg.tar.gz; do
+ for i in *${PKGEXT}; do
pkgname=$(getpkgname $i)
if [ "$pkgname" = "$1" ]; then
lastmod="$(stat -c %y $i | cut -d. -f1)"
@@ -60,7 +60,7 @@ echo "Scanning for duplicate packages in '$reponame' ($arch)"
DUPES=""
lastpkg=""
-for pkg in *.pkg.tar.gz; do
+for pkg in *${PKGEXT}; do
pkgname="$(getpkgname $pkg)"
if [ "$lastpkg" = "$pkgname" ]; then
DUPES="$DUPES $pkgname"
diff --git a/misc-scripts/ftpdir-cleanup b/misc-scripts/ftpdir-cleanup
index ed90437..a87ed8f 100755
--- a/misc-scripts/ftpdir-cleanup
+++ b/misc-scripts/ftpdir-cleanup
@@ -49,11 +49,11 @@ EXTRAFILES=""
TMPDIR=$(mktemp -d /tmp/cleanup.XXXXXX) || exit 1
cd "${TMPDIR}"
-/bin/tar xzf "$ftppath/$reponame.db.tar.$DB_COMPRESSION"
+bsdtar xf "$ftppath/$reponame.db.tar.$DB_COMPRESSION"
for pkg in *; do
filename=$(grep -A1 '^%FILENAME%$' "${pkg}/desc" | tail -n1)
- [ -z "${filename}" ] && filename="${pkg}.pkg.tar.gz"
+ [ -z "${filename}" ] && filename="${pkg}${PKGEXT}"
if [ ! -f "${ftppath}/${filename}" ]; then
MISSINGFILES="${MISSINGFILES} ${filename}"