projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06115c7
)
Also allow passing the repodata dir to repo2solv.sh.
BASE-SuSE-Code-12_1-Branch
author
Michael Andres
<ma@suse.de>
Thu, 15 Dec 2011 11:42:52 +0000
(12:42 +0100)
committer
Michael Andres
<ma@suse.de>
Thu, 15 Dec 2011 11:44:32 +0000
(12:44 +0100)
tools/repo2solv.sh
patch
|
blob
|
history
diff --git
a/tools/repo2solv.sh
b/tools/repo2solv.sh
index 518f700142deb12353f4f902d5776134a8e9a7cb..db1052c6676d405bb8ed922e6673529beca817b3 100755
(executable)
--- a/
tools/repo2solv.sh
+++ b/
tools/repo2solv.sh
@@
-98,7
+98,7
@@
cd "$dir" || exit 1
if test -z "$repotype" ; then
# autodetect repository type
- if test -d repodata ; then
+ if test -d repodata
-o -f repomd.xml
; then
repotype=rpmmd
elif test_susetags ; then
repotype=susetags
@@
-108,7
+108,9
@@
if test -z "$repotype" ; then
fi
if test "$repotype" = rpmmd ; then
- cd repodata || exit 2
+ test -d repodata && {
+ cd repodata || exit 2
+ }
primfile=
primxml=`repomd_findfile primary primary.xml`