Permalink
Browse files

Also allow passing the repodata dir to repo2solv.sh.

  • Loading branch information...
1 parent 06115c7 commit 0b32498b989b051c90b8b685f0f520b80af42e93 @mlandres mlandres committed Dec 15, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 tools/repo2solv.sh
View
@@ -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`

0 comments on commit 0b32498

Please sign in to comment.