[arch-projects] [devtools] checkpkg: Added epoch support
Eric Bélanger
snowmaniscool at gmail.com
Wed Apr 27 22:48:09 EDT 2011
Signed-off-by: Eric Bélanger <snowmaniscool at 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
More information about the arch-projects
mailing list