[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#858643: Re : Bug#858643: desktop-base: File not found in the post-inst script



Hi,

after investigating the issue once again, I figure that the bug should 
be reassigned to desktop-base.

IMO it's a desktop-base upgrade issue in case debian-edu-artwork is 
already installed and configured.
(And yeah, Debian Edu can't provide an SVG file for this ancient theme.)

To reproduce the issue from a clean state:
(1) apt purge desktop-base

Things should be ok.

(2) apt install debian-edu-artwork-spacefun

Should be ok, too.

(3) apt --reinstall install desktop-base

The error should show up.

After applying the provided patch to:
/var/lib/dpkg/info/desktop-base.postinst

and running 'dpkg --configure desktop-base'

The error should be gone.


--- a/desktop-base.postinst	2017-03-26 12:21:34.917879357 +0200
+++ b/desktop-base.postinst	2017-03-26 12:21:23.427994313 +0200
@@ -35,10 +35,17 @@
 EOF
 
     # Use active theme as highest priority for background
+    if ls -al /usr/share/desktop-base/active-theme/wallpaper/contents/images/1920x1080.png ; then
+    update-alternatives --install \
+        /usr/share/images/desktop-base/desktop-background \
+        desktop-background \
+        /usr/share/desktop-base/active-theme/wallpaper/contents/images/1920x1080.png 70
+    else
     update-alternatives --install \
         /usr/share/images/desktop-base/desktop-background \
         desktop-background \
         /usr/share/desktop-base/active-theme/wallpaper/contents/images/1920x1080.svg 70
+    fi
     # Alternatives for the background in theme packages
     while read theme filename priority; do
         update-alternatives --install \


Wolfgang

Attachment: signature.asc
Description: PGP signature


Reply to: