28 Apr
2011
28 Apr
'11
2:48 a.m.
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> --- checkpkg | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) 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 -- 1.7.5