) | susetags2solv -c "${olddir}/content" $parser_options || exit 4
cd "$olddir"
else
- rpms=`ls -1 *.rpm`
- if test -n "$rpms"; then
- rpms2solv $rpms
+ rpms=''
+ for r in *.rpm ; do
+ rpms="$rpms$r
+"
+ done
+ if test -n "$rpms" ; then
+ echo "$rpms" | rpms2solv -m -
else
exit 1
fi
}
if (manifest)
{
- if ((fp = fopen(manifest, "r")) == 0)
+ if (!strcmp(manifest, "-"))
+ fp = stdin;
+ else if ((fp = fopen(manifest, "r")) == 0)
{
perror(manifest);
exit(1);
rpms = sat_extend(rpms, nrpms, 1, sizeof(char *), 15);
rpms[nrpms++] = strdup(buf);
}
- fclose(fp);
+ if (fp != stdin)
+ fclose(fp);
}
while (optind < argc)
{