From c45e5bbf22504d62c3551d37b0f51e30716b41f1 Mon Sep 17 00:00:00 2001 From: Eric Bélanger Date: Wed, 27 Apr 2011 22:48:09 -0400 Subject: checkpkg: Added epoch support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Bélanger Signed-off-by: Pierre Schmitz --- checkpkg | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/checkpkg b/checkpkg index e1f8b8b..feb9c70 100755 --- a/checkpkg +++ b/checkpkg @@ -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 -- cgit v1.2.3-70-g09d2