Control: reopen 970762

Am Mittwoch, den 23.09.2020, 03:13 +0200 schrieb Guillem Jover:

[..]
> ---
> commit c2c28549a513b93898d8c49f6eb8cefc1670a1e2
> Author: Guillem Jover <guil...@debian.org>
> Date:   Wed Sep 23 03:00:35 2020 +0200
> 
>     Force the hardlink for the backup pci.ids database in update-pciids
>     
>     Closes: #970762, #970762

This patch only fixes the creation of the hardlink of pci.ids.gz.old ->
pci.ids.gz, which btw seems really odd to me (why do we need this link?
shouldn't .old be or at least link to the previous database?).

However /usr/share/misc/pci.ids is still deleted and breaks virt-manager.

I was checking the script and it seems it fails somwhere at lines 52-60. If I
print out the commands it looks like this:

> + DECOMP=cat
> + SRC=https://pci-ids.ucw.cz/v2.2/pci.ids.gz
> + GREP=zgrep
> + which curl
> + DL=curl -o /usr/share/misc/pci.ids.gz.new 
> https://pci-ids.ucw.cz/v2.2/pci.ids.gz
> + false
> + curl -o /usr/share/misc/pci.ids.gz.new 
> https://pci-ids.ucw.cz/v2.2/pci.ids.gz
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time  
> Current
>                                  Dload  Upload   Total   Spent    Left  Speed
> 100  278k  100  278k    0     0   814k      0 --:--:-- --:--:-- --:--:--  814k
> + cat
> + 
> + zgrep ^C  /usr/share/misc/pci.ids.gz.neww
> sh: 0: getcwd() failed: No such file or directory
> + [ -f /usr/share/misc/pci.ids.gz ]
> + ln -f /usr/share/misc/pci.ids.gz /usr/share/misc/pci.ids.gz.old
> + chmod -f --reference=/usr/share/misc/pci.ids.gz.old 
> /usr/share/misc/pci.ids.gz.neww
> + mv /usr/share/misc/pci.ids.gz.neww /usr/share/misc/pci.ids.gz
> + rm /usr/share/misc/pci.ids.gz.new
> + [ /usr/share/misc/pci.ids != /usr/share/misc/pci.ids.gz ]
> + rm -f /usr/share/misc/pci.ids /usr/share/misc/pci.ids.old
> + false
> + echo Done.

Note the getcwd() failure.

Reopening report.

-- 
Regards,
Daniel Leidert <dleid...@debian.org> | https://www.wgdd.de/
GPG-Key RSA4096 / BEED4DED5544A4C03E283DC74BCD0567C296D05D
GPG-Key ED25519 / BD3C132D8B3805D1808123AB7ACE00941E338C78

If you like my work consider sponsoring me via
https://www.patreon.com/join/dleidert

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to