summaryrefslogtreecommitdiffstats
path: root/disk/udev/REPAIR^all^PRE_SUB_DEPENDS
diff options
context:
space:
mode:
Diffstat (limited to 'disk/udev/REPAIR^all^PRE_SUB_DEPENDS')
-rwxr-xr-xdisk/udev/REPAIR^all^PRE_SUB_DEPENDS10
1 files changed, 7 insertions, 3 deletions
diff --git a/disk/udev/REPAIR^all^PRE_SUB_DEPENDS b/disk/udev/REPAIR^all^PRE_SUB_DEPENDS
index 34515c6e2b..5922183874 100755
--- a/disk/udev/REPAIR^all^PRE_SUB_DEPENDS
+++ b/disk/udev/REPAIR^all^PRE_SUB_DEPENDS
@@ -1,5 +1,9 @@
case $THIS_SUB_DEPENDS in
- EXTRAS) list_find "$UDEV_OPTS" --enable-extras;;
-*) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}" ;
- return 1;;
+ EXTRAS) message "the spell you are trying to cast is broken."
+ message "Udev's sub_depends have changed, contact the maintainer." ;;
+ GUDEV) is_depends_enabled $SPELL glib2 && return 0 ;;
+ ACL) is_depends_enabled $SPELL acl && return 0 ;;
+ HWDB) list_find "$UDEV_HWDB" --enable-hwdb ;;
+ *) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}"
+ return 1;;
esac