diff options
-rw-r--r-- | urpm/orphans.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/orphans.pm b/urpm/orphans.pm index 9b41bd5e..7a3b0eab 100644 --- a/urpm/orphans.pm +++ b/urpm/orphans.pm @@ -296,7 +296,7 @@ sub _will_prop_still_be_needed { sub _get_current_kernel_package() { my $release = (POSIX::uname())[2]; # --qf '%{name}' is used in order to provide the right format: - `rpm -qf --qf '%{name}' /boot/vmlinuz-$release`; + -e "/boot/vmlinuz-$release" && `rpm -qf --qf '%{name}' /boot/vmlinuz-$release`; } |