From 06f1dfb70c956c0f1759bf7422e4a6b6331d28de Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 26 Mar 2013 02:41:18 +0100 Subject: [PATCH] spec: simplify %post logic for udev rules Whitelist any rules file with qubes in name. This will prevent further mistakes like forgetting about some script, or even not including script for another package (like qubes-tor currently). --- rpm_spec/core-vm.spec | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index 1aa2611..15c7115 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -312,15 +312,7 @@ do continue fi - if [ $(basename $f) == "99-qubes-network.rules" ] ; then - continue - fi - - if [ $(basename $f) == "99-qubes-block.rules" ] ; then - continue - fi - - if [ $(basename $f) == "99-qubes-usb.rules" ] ; then + if echo $f | grep -q qubes; then continue fi