diff options
author | Eric Bélanger <snowmaniscool@gmail.com> | 2011-04-28 04:48:09 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-04-29 21:20:04 +0200 |
commit | c45e5bbf22504d62c3551d37b0f51e30716b41f1 (patch) | |
tree | e51dd9dca5e41cf9a4cd56c410dc46068c4e5d5a | |
parent | e380f396cf4a369d560073010f4aa58314893b98 (diff) | |
download | devtools-c45e5bbf22504d62c3551d37b0f51e30716b41f1.tar.gz devtools-c45e5bbf22504d62c3551d37b0f51e30716b41f1.tar.xz |
checkpkg: Added epoch support
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rwxr-xr-x | checkpkg | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -32,7 +32,11 @@ TEMPDIR=$(mktemp -d /tmp/checkpkg-script.XXXX) cd $TEMPDIR for _pkgname in ${pkgname[@]}; do - pkgfile=${_pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT} + if [ -z ${epoch} ] ; then + pkgfile=${_pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT} + else + pkgfile=${_pkgname}-${epoch}:${pkgver}-${pkgrel}-${CARCH}${PKGEXT} + fi oldstylepkgfile=${_pkgname}-${pkgver}-${pkgrel}${PKGEXT} if [ -f "$STARTDIR/$pkgfile" ]; then |