git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
816e591
)
Support --uniqueext.
author
jkratoch
<>
Wed, 21 Oct 2009 16:56:07 +0000
(16:56 +0000)
committer
jkratoch
<>
Wed, 21 Oct 2009 16:56:07 +0000
(16:56 +0000)
bin/mocksetup
patch
|
blob
|
history
diff --git
a/bin/mocksetup
b/bin/mocksetup
index
9d9d329
..
aec4404
100755
(executable)
--- a/
bin/mocksetup
+++ b/
bin/mocksetup
@@
-107,7
+107,12
@@
for r in $l;do
echo $c
done
if ! $u;then
- c="mount --bind /var/cache/mock/$r/yum_cache $rpath/var/cache/yum"
+ if [ -d /var/cache/mock/$r/yum_cache ];then
+ cr=$r
+ else
+ cr=`echo $r|sed 's/-[^-]*$//'`
+ fi
+ c="mount --bind /var/cache/mock/$cr/yum_cache $rpath/var/cache/yum"
echo $c; $c
fi