diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-03-31 23:09:57 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-03-31 23:09:57 +0200 |
commit | 57987ae42fb58c58e044bfd7d3486010b32bb313 (patch) | |
tree | 294f83ab65d2ff8610442c7a7f22cc4932f351fc /db-move | |
parent | 7bc888905280e1b59febdc4bad475b726225b95d (diff) | |
download | dbscripts-57987ae42fb58c58e044bfd7d3486010b32bb313.tar.gz dbscripts-57987ae42fb58c58e044bfd7d3486010b32bb313.tar.xz |
don't publish *.old files
Diffstat (limited to 'db-move')
-rwxr-xr-x | db-move | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -88,8 +88,7 @@ if [ -d "$packagebase/repos/$svnrepo_from" ]; then if [ -f "$ftppath_from/$architecture/$repofrom$DBEXT" ]; then /bin/cp "$ftppath_from/$architecture/$repofrom$DBEXT" . /usr/bin/repo-remove -q "$repofrom$DBEXT" ${pkgname[@]} || die "Error in repo-remove" - #use '*' to move the old DB too - mv $repofrom$DBEXT* "$ftppath_from/$architecture" + mv $repofrom$DBEXT "$ftppath_from/$architecture" echo " Package files will be cleaned up automatically" fi @@ -104,8 +103,7 @@ if [ -d "$packagebase/repos/$svnrepo_from" ]; then /bin/cp $_cpkgfile . /usr/bin/repo-add -q "$repoto$DBEXT" $_pkgfile || die "Error in repo-add $_pkgfile" done - #use '*' to move the old DB too - mv $repoto$DBEXT* $ftppath_to/$architecture + mv $repoto$DBEXT $ftppath_to/$architecture for i in ${pkgname[@]}; do _pkgfile=$(getpkgfile "$i-$pkgver-$pkgrel-$_arch"$PKGEXT) [ $? -gt 0 ] && die |