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_print_warning_for_nonalt_packages()
{
...
...
@@ -11196,10 +11167,11 @@ __epm_check_vendor()
local i
for i in$*;do
bi="$(basename$i)"
if! epm_status_validate "$i";then
# it is missed package probably (package remove case)
if is_installed "$i";then
warning "Can't get any info for $i package. Scripts are DISABLED for package $i. Use --scripts if you need run scripts from such packages."
warning "Can't get any info for $i package. Scripts are DISABLED for package $bi. Use --scripts if you need run scripts from such packages."
fi
noscripts="--noscripts"
continue
...
...
@@ -11209,7 +11181,7 @@ __epm_check_vendor()
vendor="$(epm print field Vendor for"$i")"
if[-z"$vendor"];then
warning "Can't get info about vendor for $i package. Scripts are DISABLED for package $i. Use --scripts if you need run scripts from such packages."
warning "Can't get info about vendor for $i package. Scripts are DISABLED for package $bi. Use --scripts if you need run scripts from such packages."
noscripts="--noscripts"
continue
fi
...
...
@@ -11218,19 +11190,20 @@ __epm_check_vendor()
epm_status_repacked "$i"&&continue
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."
warning "Scripts are ENABLED for package $bi 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."
warning "Scripts are ENABLED for package $bi 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."
warning "Scripts are DISABLED for package $bi from outside vendor '$vendor'. Use --scripts if you need run scripts from such packages."