summaryrefslogtreecommitdiff
path: root/libre/dkms-libre/01-broken-uninstall.patch
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@parabola.nu>2013-07-03 10:33:32 -0300
committerNicolás Reynolds <fauno@parabola.nu>2013-07-03 10:33:32 -0300
commit8647aee53c2f9f5458e57fe7ac212da40a555594 (patch)
treeb99a8fbc859d18a244ea5ac496083e66ffaa330d /libre/dkms-libre/01-broken-uninstall.patch
parent3a14409a347f3423bf2a4ab847edff625b671e20 (diff)
parent0a5c7083d197551290bc762f4ba90210cb733a5e (diff)
downloadabslibre-8647aee53c2f9f5458e57fe7ac212da40a555594.tar.gz
abslibre-8647aee53c2f9f5458e57fe7ac212da40a555594.tar.bz2
abslibre-8647aee53c2f9f5458e57fe7ac212da40a555594.zip
Merge branch 'master' of vparabola:abslibre
Conflicts: java/not-working/java-bnd/PKGBUILD libre/parabola-keyring/PKGBUILD
Diffstat (limited to 'libre/dkms-libre/01-broken-uninstall.patch')
-rw-r--r--libre/dkms-libre/01-broken-uninstall.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/libre/dkms-libre/01-broken-uninstall.patch b/libre/dkms-libre/01-broken-uninstall.patch
new file mode 100644
index 000000000..a859efabe
--- /dev/null
+++ b/libre/dkms-libre/01-broken-uninstall.patch
@@ -0,0 +1,22 @@
+diff --git a/dkms b/dkms
+index abb01a4..265b69a 100644
+--- a/dkms
++++ b/dkms
+@@ -162,11 +162,14 @@ set_kernel_source_dir()
+
+ # A little test function for DKMS commands that only work on one kernel.
+ have_one_kernel() {
+- (( ${#kernelver[@]} > 1 )) && \
+- die 4 $"The action $1 does not support multiple kernel version" \
+- $"parameters on the command line."
+- [[ $all ]] && die 5 $"The action $1 does not support the --all" \
+- $"parameter."
++ if (( ${#kernelver[@]} != 1 )); then
++ die 4 $"The action $1 does not support multiple kernel version" \
++ $"parameters on the command line."
++ fi
++ if [[ $all ]]; then
++ die 5 $"The action $1 does not support the --all" \
++ $"parameter."
++ fi
+ }