Merge pull request #902 from teh-jazzman/vkpurge

base-files: Prevent 'vkpurge list' from displaying errors at unknown kernel files
This commit is contained in:
Juan RP 2015-01-20 20:14:20 +01:00
commit de35114ec8
2 changed files with 4 additions and 3 deletions

View File

@ -23,14 +23,15 @@ _EOF
list_kernels()
{
local k kpkg installed kver skip _f
local k kpkg installed kver _f
for k in /boot/vmlinuz-*; do
_f=$(basename $k)
kver=$(echo ${_f}|sed -e 's|-rc|rc|')
installed=$(xbps-query -o "$k" 2>/dev/null)
[ -n "$installed" ] && continue
echo "$(xbps-uhelper getpkgversion ${_f})"
kpkg="$(xbps-uhelper getpkgversion ${_f} 2>/dev/null)"
[ -n "$kpkg" ] && echo "$kpkg"
done
}

View File

@ -1,7 +1,7 @@
# Template file for 'base-files'
pkgname=base-files
version=0.114
revision=2
revision=3
bootstrap=yes
build_style="meta"
depends="base-directories xbps-triggers"