# tries to detect the repo type and generate one SOLV file on stdout
LANG=C
+parser_options=${PARSER_OPTIONS:-}
+
dir="$1"
cd "$dir" || exit 1
if test -n "$cmd"; then
# we have some primary.xml*
primfile=`mktemp` || exit 3
- $cmd $i | rpmmd2solv $(PARSER_OPTIONS) > $primfile
+ $cmd $i | rpmmd2solv $parser_options > $primfile
fi
patchfile="/nonexist"
esac
done
echo '</patches>'
- ) | grep -v '\?xml' | patchxml2solv $(PARSER_OPTIONS) > $patchfile
+ ) | grep -v '\?xml' | patchxml2solv $parser_options > $patchfile
fi
# Now merge primary and patches
esac
done
fi
- ) | susetags2solv -c "${olddir}/content" $(PARSER_OPTIONS)
+ ) | susetags2solv -c "${olddir}/content" $parser_options
cd "$olddir"
+else
+ exit 1
fi