name="$(epm print field Name for"$pkg" 2>/dev/null)"
[-n"$name"]||return 1
local tmpalf=$(__convert_pkgallowscripts_to_regexp "$alf")
echo"$name" | grep-q-f$tmpalf
local res=$?
rm$tmpalf
return$res
}
__epm_vendor_ok_scripts()
{
local vendor="$1"
local alf="$CONFIGDIR/vendorallowscripts.list"
[-s"$alf"]||return 1
[-n"$vendor"]||return 1
local tmpalf=$(__convert_pkgallowscripts_to_regexp "$alf")
echo"$vendor" | grep-q-f$tmpalf
local res=$?
rm$tmpalf
return$res
}
__epm_check_vendor()
{
# don't check vendor if there are forced script options
...
...
@@ -9149,9 +9294,21 @@ __epm_check_vendor()
[-n"$rpmversion"]||continue
vendor="$(epm print field Vendor for"$i" 2>/dev/null)"
# TODO: check GPG
# check separately to be quiet
["$vendor"="ALT Linux Team"]&&continue
warning "Scripts are disabled for package $i from outside vendor '$vendor'. Use --scripts if you need run scripts from such packages."
if __epm_vendor_ok_scripts "$vendor";then
warning "Scripts are ENABLED for package $i from outside vendor '$vendor' (this vendor is listed in $CONFIGDIR/vendorallowscripts.list). Use --noscripts if you need disable scripts in such packages."
continue
fi
if __epm_package_ok_scripts "$i";then
warning "Scripts are ENABLED for package $i from outside vendor '$vendor' (the package is listed in $CONFIGDIR/pkgallowscripts.list). Use --noscripts if you need disable scripts in such packages."
continue
fi
warning "Scripts are DISABLED for package $i from outside vendor '$vendor'. Use --scripts if you need run scripts from such packages."
noscripts="--noscripts"
done
}
...
...
@@ -9298,6 +9455,9 @@ EOF
urpm-rpm)
CMD="urpmi --test --auto"
;;
eopkg)
CMD="eopkg --dry-run install"
;;
zypper-rpm)
if! __use_zypper_dry_run >/dev/null ;then
fatal "zypper is too old: does not support --dry-run"
...
...
@@ -9612,6 +9772,9 @@ case $PMTYPE in
opkg)
sudocmd opkg update
;;
eopkg)
sudocmd eopkg update-repo
;;
apk)
sudocmd apk update
;;
...
...
@@ -9672,6 +9835,12 @@ epm_upgrade()
fi
fi
# Solus supports upgrade for a package (with all dependencies)