Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Bélanger <snowmaniscool@gmail.com>2011-04-27 22:48:09 -0400
committerPierre Schmitz <pierre@archlinux.de>2011-04-29 21:20:04 +0200
commitc45e5bbf22504d62c3551d37b0f51e30716b41f1 (patch)
treee51dd9dca5e41cf9a4cd56c410dc46068c4e5d5a
parente380f396cf4a369d560073010f4aa58314893b98 (diff)
checkpkg: Added epoch support
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rwxr-xr-xcheckpkg6
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