summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-06-02 14:29:14 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-06-02 14:29:14 -0500
commit49850f2ba4494956e31b9d8474903e9ab3dd9b8e (patch)
tree81e788b9dfbc73768692649a088c888cb4259972
parentf0f010772d651e09f957f9b47057e81e7737ad45 (diff)
librestage can find packages with epoch
-rwxr-xr-xlibrestage4
1 files changed, 3 insertions, 1 deletions
diff --git a/librestage b/librestage
index f074672..917c9bf 100755
--- a/librestage
+++ b/librestage
@@ -77,7 +77,9 @@ staged='n'
for _arch in ${ARCHES[@]}; do
for pkg in ${pkgname[@]}; do
- pkgpath=$(find ${PKGDEST}/ -type f -name "${pkg}-${pkgver}-${pkgrel}-${_arch}${PKGEXT}")
+ pkgpath=$(find ${PKGDEST}/ -type f \
+ -name "${pkg}-${pkgver}-${pkgrel}-${_arch}${PKGEXT}" -or \
+ -name "${pkg}-${epoch}:${pkgver}-${pkgrel}-${_arch}${PKGEXT}")
[[ -z ${pkgpath} ]] && continue