chiark / gitweb /
rule_generator: fix for creating rules on read-only filesystem
authorMatthias Schwarzott <zzam@gentoo.org>
Mon, 26 Feb 2007 14:07:42 +0000 (15:07 +0100)
committerKay Sievers <kay.sievers@suse.de>
Mon, 26 Feb 2007 14:07:42 +0000 (15:07 +0100)
extras/rule_generator/rule_generator.functions

index 14c585a..712ed26 100644 (file)
@@ -92,7 +92,6 @@ find_all_rules() {
        local linkre="$2"
        local match="$3"
 
-       [ -e $RULES_FILE ] || return
        local search='.*[[:space:],]'"$key"'"\('"$linkre"'\)"[[:space:]]*\(,.*\|\\\|\)$'
        echo $(sed -n -e "${match}s/${search}/\1/p" $RO_RULES_FILE $RULES_FILE)
 }