summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Bélanger <snowmaniscool@gmail.com>2011-07-09 00:03:48 +0200
committerPierre Schmitz <pierre@archlinux.de>2011-07-24 21:42:44 +0200
commit4e2e92406a4a8b71e3bb9665fbf09b69e39a9f55 (patch)
tree0e691d5b9ff69a30ec2c989e7ee3e06ff5a7c72c
parent7d3481f9458241523116266d9c4c6592082aa346 (diff)
downloaddbscripts-4e2e92406a4a8b71e3bb9665fbf09b69e39a9f55.tar.gz
dbscripts-4e2e92406a4a8b71e3bb9665fbf09b69e39a9f55.tar.xz
Add epoch support to integrity check cron job
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rwxr-xr-xcron-jobs/check_archlinux/parse_pkgbuilds.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/cron-jobs/check_archlinux/parse_pkgbuilds.sh b/cron-jobs/check_archlinux/parse_pkgbuilds.sh
index 5cd17e4..3f92169 100755
--- a/cron-jobs/check_archlinux/parse_pkgbuilds.sh
+++ b/cron-jobs/check_archlinux/parse_pkgbuilds.sh
@@ -6,7 +6,7 @@
exit() { return; }
splitpkg_overrides=('depends' 'optdepends' 'provides' 'conflicts')
-variables=('pkgname' 'pkgbase' 'pkgver' 'pkgrel' 'makedepends' 'arch' ${splitpkg_overrides[@]})
+variables=('pkgname' 'pkgbase' 'epoch' 'pkgver' 'pkgrel' 'makedepends' 'arch' ${splitpkg_overrides[@]})
readonly -a variables splitpkg_overrides
backup_package_variables() {
@@ -29,7 +29,11 @@ restore_package_variables() {
print_info() {
echo -e "%NAME%\n$pkgname\n"
- echo -e "%VERSION%\n$pkgver-$pkgrel\n"
+ if [ -n "$epoch" ]; then
+ echo -e "%VERSION%\n$epoch:$pkgver-$pkgrel\n"
+ else
+ echo -e "%VERSION%\n$pkgver-$pkgrel\n"
+ fi
echo -e "%PATH%\n$dir\n"
if [ -n "$pkgbase" ]; then