summaryrefslogtreecommitdiff
path: root/genpkglist
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2003-10-12 18:41:26 +0000
committerJudd Vinet <judd@archlinux.org>2003-10-12 18:41:26 +0000
commitfdf319926e30942672a3cc57ad6f1bc173d81a6d (patch)
treebed24172239e4de7654783ad0c2e849e6a266e6a /genpkglist
parent3c4909c323aadad6be0aa600f0534beb0bd413b3 (diff)
updated to work with other repos
Diffstat (limited to 'genpkglist')
-rwxr-xr-xgenpkglist6
1 files changed, 4 insertions, 2 deletions
diff --git a/genpkglist b/genpkglist
index 6af0bed..c18c61f 100755
--- a/genpkglist
+++ b/genpkglist
@@ -1,13 +1,15 @@
#!/bin/bash
-# $Id: genpkglist,v 1.7 2003/05/25 23:50:02 judd Exp $
+# $Id: genpkglist,v 1.8 2003/10/12 18:41:26 judd Exp $
#
# genpkglist
#
# Generates a text package database for use with the setup script
+# (also used to check for missing packages in the download directory)
#
pkgfile="`pwd`/packages.txt"
+repodir=$1
rm -f $pkgfile
for category in `find * -type d -maxdepth 0 | grep -v CVS`; do
@@ -16,7 +18,7 @@ for category in `find * -type d -maxdepth 0 | grep -v CVS`; do
cd $pkg
if [ -f PKGBUILD ]; then
. PKGBUILD
- if [ -f /home/ftp/current/$pkgname-$pkgver-$pkgrel.pkg.tar.gz ]; then
+ if [ -f /home/ftp/$repodir/$pkgname-$pkgver-$pkgrel.pkg.tar.gz ]; then
echo "$category/$pkgname-$pkgver-$pkgrel.pkg.tar.gz" >>$pkgfile
else
echo "notice: Missing $pkgname-$pkgver-$pkgrel.pkg.tar.gz in ftp site" >&2