summaryrefslogtreecommitdiffstats
path: root/db-move
diff options
context:
space:
mode:
authorRémy Oudompheng <remyoudompheng@gmail.com>2011-04-01 00:54:57 +0200
committerPierre Schmitz <pierre@archlinux.de>2011-04-02 02:10:01 +0200
commita7b293ad4d819fa77592818af27f7c2a3b9b2ca4 (patch)
treed45d1b6930c7df46bc6970cd5951622d64930926 /db-move
parent9abfc4fe1d3e31bc7bd03287029aacd8287ce6ee (diff)
downloaddbscripts-a7b293ad4d819fa77592818af27f7c2a3b9b2ca4.tar.gz
dbscripts-a7b293ad4d819fa77592818af27f7c2a3b9b2ca4.tar.xz
Add signature files to update/move/remove targets
Signature files are optional and the previous behaviour is unchanged when signatures files do not exist. Signed-off-by: Rémy Oudompheng <remy@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'db-move')
-rwxr-xr-xdb-move3
1 files changed, 3 insertions, 0 deletions
diff --git a/db-move b/db-move
index ced90a3..ff1b0e2 100755
--- a/db-move
+++ b/db-move
@@ -96,6 +96,9 @@ for pkgbase in ${args[@]:2}; do
cp ${pkgpath} ${FTP_BASE}/${PKGPOOL}
fi
ln -s "../../../${PKGPOOL}/${pkgfile}" ${ftppath_to}/${tarch}/
+ if [ -f ${FTP_BASE}/${PKGPOOL}/${pkgfile}.sig ]; then
+ ln -s "../../../${PKGPOOL}/${pkgfile}.sig" ${ftppath_to}/${tarch}/
+ fi
add_pkgs[${tarch}]+="${FTP_BASE}/${PKGPOOL}/${pkgfile} "
remove_pkgs[${tarch}]+="${pkgname} "
done