summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinit.d/60create-packagelist13
-rwxr-xr-xpost-install.d/10update-packagelist13
2 files changed, 4 insertions, 22 deletions
diff --git a/init.d/60create-packagelist b/init.d/60create-packagelist
index 351d5aa..ccac425 100755
--- a/init.d/60create-packagelist
+++ b/init.d/60create-packagelist
@@ -1,14 +1,5 @@
#!/bin/sh
set -e
-# NOTE: the output of this command should always be emtpy!
-# diff init.d/60create-packagelist post-install.d/10update-packagelist
-# todo: fix this with symlinks? Or with metadata.d?
-
-if [ "$LOWLEVEL_PACKAGE_MANAGER" = dpkg ]; then
- # The output is already sorted
- dpkg-query --show > /etc/package-list
-elif [ "$LOWLEVEL_PACKAGE_MANAGER" = "rpm" ]; then
- rpm -qa | sort > /etc/package-list
-fi
-
+# The output is already sorted
+dpkg-query --show > /etc/package-list
diff --git a/post-install.d/10update-packagelist b/post-install.d/10update-packagelist
index 351d5aa..ccac425 100755
--- a/post-install.d/10update-packagelist
+++ b/post-install.d/10update-packagelist
@@ -1,14 +1,5 @@
#!/bin/sh
set -e
-# NOTE: the output of this command should always be emtpy!
-# diff init.d/60create-packagelist post-install.d/10update-packagelist
-# todo: fix this with symlinks? Or with metadata.d?
-
-if [ "$LOWLEVEL_PACKAGE_MANAGER" = dpkg ]; then
- # The output is already sorted
- dpkg-query --show > /etc/package-list
-elif [ "$LOWLEVEL_PACKAGE_MANAGER" = "rpm" ]; then
- rpm -qa | sort > /etc/package-list
-fi
-
+# The output is already sorted
+dpkg-query --show > /etc/package-list