Control: tags 1073630 + pending

Dear maintainer,

I've prepared an NMU for powermgmt-base (versioned as 1.37+nmu1) and
uploaded it to DELAYED/7. Please feel free to tell me if I
should delay it longer.

Regards.

diff -Nru powermgmt-base-1.37/debian/changelog powermgmt-base-1.37+nmu1/debian/changelog
--- powermgmt-base-1.37/debian/changelog	2022-08-20 22:33:27.000000000 +0200
+++ powermgmt-base-1.37+nmu1/debian/changelog	2024-07-08 00:54:34.000000000 +0200
@@ -1,3 +1,13 @@
+powermgmt-base (1.37+nmu1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Install files into /usr/sbin. (Closes: #1073630)
+
+  [ Adam Borowski ]
+  * Drop the ACPI check (fully redundant).
+
+ -- Chris Hofstaedtler <z...@debian.org>  Mon, 08 Jul 2024 00:54:34 +0200
+
 powermgmt-base (1.37) unstable; urgency=medium
 
   * New tool: lspower.
diff -Nru powermgmt-base-1.37/debian/install powermgmt-base-1.37+nmu1/debian/install
--- powermgmt-base-1.37/debian/install	2022-08-20 19:35:03.000000000 +0200
+++ powermgmt-base-1.37+nmu1/debian/install	2024-07-08 00:54:34.000000000 +0200
@@ -1,2 +1,2 @@
-on_ac_power	/sbin
+on_ac_power	/usr/sbin
 lspower		/usr/bin
diff -Nru powermgmt-base-1.37/debian/links powermgmt-base-1.37+nmu1/debian/links
--- powermgmt-base-1.37/debian/links	2019-04-21 00:03:22.000000000 +0200
+++ powermgmt-base-1.37+nmu1/debian/links	2024-07-08 00:54:34.000000000 +0200
@@ -1 +1 @@
-sbin/on_ac_power usr/bin/on_ac_power
+usr/sbin/on_ac_power usr/bin/on_ac_power
diff -Nru powermgmt-base-1.37/on_ac_power powermgmt-base-1.37+nmu1/on_ac_power
--- powermgmt-base-1.37/on_ac_power	2022-08-20 19:35:03.000000000 +0200
+++ powermgmt-base-1.37+nmu1/on_ac_power	2024-07-08 00:54:28.000000000 +0200
@@ -39,24 +39,6 @@
     [ "${OFF_LINE_P}" = "yes" ] && exit 1
 fi
 
-# ACPI
-# same algorithm as above, a fallback only when the generic sysfs interface
-# is not available (old kernels only)
-if [ -d /proc/acpi/ac_adapter ]; then
-    for FN in /proc/acpi/ac_adapter/*; do
-	if [ -d "${FN}" ]; then
-	    if [ -r "${FN}/state" ]; then
-		grep --quiet on-line "${FN}/state" && exit 0
-		grep --quiet off-line "${FN}/state" && OFF_LINE_P=yes
-	    elif [ -r "${FN}/status" ]; then
-		grep --quiet on-line "${FN}/status" && exit 0
-		grep --quiet off-line "${FN}/status" && OFF_LINE_P=yes
-	    fi
-	fi
-    done
-    [ "${OFF_LINE_P}" = "yes" ] && exit 1
-fi
-
 # PMU
 if [ -r /proc/pmu/info ]; then
     exec awk </proc/pmu/info '

Reply via email to