From a77cfff366b228102029db277459ce6893cb0110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BChlinghaus?= Date: Tue, 20 Jan 2015 19:58:25 +0100 Subject: [PATCH] base-files: Prevent 'vkpurge list' from displaying errors at unknown kernel files --- srcpkgs/base-files/files/vkpurge | 5 +++-- srcpkgs/base-files/template | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/srcpkgs/base-files/files/vkpurge b/srcpkgs/base-files/files/vkpurge index 8d5d62985cc..0ccb2eb2a29 100644 --- a/srcpkgs/base-files/files/vkpurge +++ b/srcpkgs/base-files/files/vkpurge @@ -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 } diff --git a/srcpkgs/base-files/template b/srcpkgs/base-files/template index 9c82fc1ffdc..8d6c5f1f9a2 100644 --- a/srcpkgs/base-files/template +++ b/srcpkgs/base-files/template @@ -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"