Commit c25c457b authored by Vitaly Lipatov's avatar Vitaly Lipatov

don't require rpm directly

parent d94ab973
......@@ -38,7 +38,7 @@ case $PMTYPE in
*-rpm)
#__repack_rpm_base
#rm -f /var/lib/rpm/__db*
rpm --rebuilddb
a= rpm --rebuilddb
;;
*)
fatal "Have no suitable command for $PMTYPE"
......
......@@ -27,7 +27,7 @@ query_package_field()
local INSTALLED="-p"
# if not file, drop -p for get from rpm base
[ -f "$1" ] || INSTALLED=""
rpmquery $INSTALLED --queryformat "$FORMAT" "$@"
a= rpmquery $INSTALLED --queryformat "$FORMAT" "$@"
}
......@@ -87,7 +87,7 @@ print_srcname()
print_specname()
{
# CHECKME: it is possible to have two or more specs in one package?
rpm -qlp "$@" | grep "\.spec\$"
a= rpm -qlp "$@" | grep "\.spec\$"
}
print_srcpkgname()
......@@ -121,7 +121,7 @@ print_srcpkgname()
compare_version()
{
which rpmevrcmp 2>/dev/null >/dev/null || fatal "rpmevrcmp exists in ALT Linux only"
rpmevrcmp "$@"
a= rpmevrcmp "$@"
}
# construct package file name.
......
......@@ -5,7 +5,6 @@ file
findutils
grep
less
rpm
sed
sudo
termutils
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment