Your message dated Sun, 17 Feb 2019 14:45:29 +0000
with message-id <e1gvnhb-0001xr...@fasolo.debian.org>
and subject line Bug#919028: fixed in chrome-gnome-shell 10.1-5
has caused the Debian Bug report #919028,
regarding chrome-gnome-shell: postinst fails on reconfigure or if json already 
exists
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
919028: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919028
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: chrome-gnome-shell
Version: 10.1-4
Severity: normal
Tags: patch

Dear Maintainer,

The postinst script fails if

  /etc/opt/chrome/native-messaging-hosts/org.gnome.chrome_gnome_shell.json

already exists on the system at the time of install. I've been able to
reproduce this two different ways so far:

1. I manually copied the file before upgrading to 10.1-4. The postinst
   attempted to symlink on top of an existing regular file and failed.

2. I ran `dpkg-reconfigure chrome-gnome-shell` after successful install.
   The postinst attempted to symlink on top an an already existing
   symlink that it had created when it was first installed.

There are probably several different ways you could address this, I'm
attaching a suggestion that works for me. In general I would think if
the destination already exists as a file or a symlink, you should avoid
trying to overwrite it at all.

Thanks!


-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 
'unstable-debug'), (800, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages chrome-gnome-shell depends on:
ii  gnome-shell       3.30.1-2
ii  python3           3.7.1-3
ii  python3-gi        3.30.4-1
ii  python3-requests  2.20.0-2

chrome-gnome-shell recommends no packages.

Versions of packages chrome-gnome-shell suggests:
ii  chromium  72.0.3626.7-4
pn  firefox   <none>

-- no debconf information
>From d8be8ae955cf79d0835b40718476561e97d79a9f Mon Sep 17 00:00:00 2001
From: Mike Miller <mtmil...@debian.org>
Date: Fri, 11 Jan 2019 15:53:55 -0800
Subject: [PATCH] Avoid failing install on link in /etc/opt/chrome

---
 debian/postinst | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/postinst b/debian/postinst
index 703dfacc44a7..af0cada8695a 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -5,6 +5,8 @@ set -e
 #DEBHELPER#
 
 mkdir -p /etc/opt/chrome/native-messaging-hosts
-ln -s /usr/share/chrome-gnome-shell/org.gnome.chrome_gnome_shell.json 
/etc/opt/chrome/native-messaging-hosts/
+if [ ! -e 
/etc/opt/chrome/native-messaging-hosts/org.gnome.chrome_gnome_shell.json ]; then
+  ln -sf /usr/share/chrome-gnome-shell/org.gnome.chrome_gnome_shell.json 
/etc/opt/chrome/native-messaging-hosts/
+fi
 
 exit 0
-- 
2.20.1


--- End Message ---
--- Begin Message ---
Source: chrome-gnome-shell
Source-Version: 10.1-5

We believe that the bug you reported is fixed in the latest version of
chrome-gnome-shell, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 919...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Simon McVittie <s...@debian.org> (supplier of updated chrome-gnome-shell 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 17 Feb 2019 13:48:08 +0000
Source: chrome-gnome-shell
Architecture: source
Version: 10.1-5
Distribution: unstable
Urgency: medium
Maintainer: Debian GNOME Maintainers 
<pkg-gnome-maintain...@lists.alioth.debian.org>
Changed-By: Simon McVittie <s...@debian.org>
Closes: 919028
Changes:
 chrome-gnome-shell (10.1-5) unstable; urgency=medium
 .
   * Team upload
   * Avoid failure to install or reconfigure when
     /etc/opt/chrome/native-messaging-hosts/org.gnome.chrome_gnome_shell.json
     already exists. Thanks to Mike Miller. (Closes: #919028)
   * Remove /etc/opt/chrome/native-messaging-hosts during purge, avoiding
     leftover directories during remove-then-purge (thanks, piuparts)
Checksums-Sha1:
 73ab9f3e08d9f31b44199974fbf33d66625e5600 2130 chrome-gnome-shell_10.1-5.dsc
 e89b312c443b6f53151d4e2e0c819f5288d71111 4536 
chrome-gnome-shell_10.1-5.debian.tar.xz
 6a4bbda14bd9a58d1ebe8aa3cb5f7b0ce60d575d 6433 
chrome-gnome-shell_10.1-5_source.buildinfo
Checksums-Sha256:
 9980018d5097435b43719c9fdf60fed528a71be08dc79b6a8a28152b82a45d8d 2130 
chrome-gnome-shell_10.1-5.dsc
 7462cc2f17c4ce206029067d9dc2fe6c1cc8a476bcdeb24f9209b427b0f9492a 4536 
chrome-gnome-shell_10.1-5.debian.tar.xz
 a3ea656270d4b264f11afcd39774a8f67fef59271ef424d5bbe0cdc271ed0c91 6433 
chrome-gnome-shell_10.1-5_source.buildinfo
Files:
 9f3f62eaf10a13f84a1087525039d08a 2130 gnome optional 
chrome-gnome-shell_10.1-5.dsc
 f10f2568681b20bbd22bc2414c3be9f6 4536 gnome optional 
chrome-gnome-shell_10.1-5.debian.tar.xz
 79bba8dd8a8b2649d545e2c82d292b5a 6433 gnome optional 
chrome-gnome-shell_10.1-5_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEENuxaZEik9e95vv6Y4FrhR4+BTE8FAlxpbtAACgkQ4FrhR4+B
TE8hOg/+O8LdYhiblsbv5pE8b3/noFuuOFZtR2MW3RM/K9n06S2H+ih6d6OKUb0t
cwBSeQ6ChPZwhmMJVkHCxoB2u8HyQn+AoWbKp2gdT8kA0doUHzlKMxRmhgyWWt3w
NWvVcXaqNRnANRZxIswxqCxbC212OaSScKc7AigkkwtyK0teTG26dt0Ksmt3oUJI
42qLf9jbTtTykxR83KAhZeJhhTLrk0nNtd+eRtBdfnkfnUwhr1o9I0DAKldg5Few
LmgZWdhQ9WoFS35Tc4r4/avC2sFhJHUdMk0Ml9jELKz/m2wyQKydQmplxUwRNUoC
DXp0itAPWtjJ6kBE16f0hWNLDkflJb8q2QQRvZbm+aWFqu9gu9ZxwPfhCwiLKpJm
t6Mbg/og4EK8p5ghRF6gGM0/okPINN8O5VPs+24BKPEKSZ8RR/nzq+Hw8JouX3ot
zMvPuZlT3/qEU/VE5TJMog6A6vS+SLmjK5MCPGAgzyk8Yk+mzqP412dKI7zGSh7C
pP4no+Qhz2j9J7I4XSWS353O4nSRpfLgcTgr9Y/8Pr5U2sBFRzaJxDpztXuM4k1Z
nD3nNvW9wBFPDPzT+KAezHW5dy5gXzHNQnWg1E/MvBQPnZozrutF0sV9ZnU2N1Ec
nvdbsluKX3l3KUhplx5dS6A2LgaU0T/ik4Hj7yj0x9Za6RWuoMU=
=CU5d
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to