Do the right thing if someone deleted pkginfo.$secname instead
of rm -rf'ing the package dir.
This commit is contained in:
@@ -404,9 +404,11 @@ get_pkgname()
|
||||
{
|
||||
local secname=$1
|
||||
|
||||
local pn=$($GREP PKG $metadir/pkginfo.$secname)
|
||||
local pname=$(_upls ${pn##PKG=})
|
||||
echo $pname
|
||||
if [ -r $metadir/pkginfo.$secname ]; then
|
||||
local pn=$($GREP PKG $metadir/pkginfo.$secname)
|
||||
local pname=$(_upls ${pn##PKG=})
|
||||
echo $pname
|
||||
fi
|
||||
}
|
||||
|
||||
# get_pkgrev(): Extract pkgrev (REV part of VERSION field) from pkginfo file
|
||||
|
||||
Reference in New Issue
Block a user