summaryrefslogtreecommitdiff
path: root/tools/repo2solv.sh
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-12-09 11:54:13 +0100
committerMichael Schroeder <mls@suse.de>2013-12-09 11:54:13 +0100
commitb1715bff47df266903cfb10ce99c107bc21c09ba (patch)
treeca30e8c094d5af08face14ccc8cbe5fe5b452187 /tools/repo2solv.sh
parenteaed4ac011505b68129b900cdfe3a06cbca42c8e (diff)
downloadlibsolv-b1715bff47df266903cfb10ce99c107bc21c09ba.tar.gz
libsolv-b1715bff47df266903cfb10ce99c107bc21c09ba.tar.bz2
libsolv-b1715bff47df266903cfb10ce99c107bc21c09ba.zip
enable appdata support for suse
Diffstat (limited to 'tools/repo2solv.sh')
-rwxr-xr-xtools/repo2solv.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/repo2solv.sh b/tools/repo2solv.sh
index c3f968a..e85ca92 100755
--- a/tools/repo2solv.sh
+++ b/tools/repo2solv.sh
@@ -204,8 +204,11 @@ if test "$repotype" = rpmmd ; then
fi
# This contains appdata
+ appdataxml=
appdatafile=
- appdataxml=`repomd_findfile appdata appdata.xml`
+ if test -x /usr/bin/appdata2solv ; then
+ appdataxml=`repomd_findfile appdata appdata.xml`
+ fi
if test -n "$appdataxml" -a -s "$appdataxml" ; then
appdatafile=`mktemp` || exit 3
repomd_decompress "$appdataxml" | appdata2solv $parser_options > $appdatafile || exit 4
@@ -219,8 +222,11 @@ elif test "$repotype" = susetags ; then
olddir=`pwd`
DESCR=$(get_DESCRDIR)
cd ${DESCR} || exit 2
+ appdataxml=
appdatafile=
- appdataxml=`susetags_findfile appdata.xml`
+ if test -x /usr/bin/appdata2solv ; then
+ appdataxml=`susetags_findfile appdata.xml`
+ fi
if test -n "$appdataxml" ; then
appdatafile=`mktemp` || exit 3
repomd_decompress "$appdataxml" | appdata2solv $parser_options > $appdatafile || exit 4