You are not logged in.

#1 2020-03-16 18:40:36

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,251

[SOLVED] Pacman ignores "commented out" comment for ignored packages

Sorry for the confusing title, but not really sure of a better way to phrase it.

On occasion I have had reason to ignore an upgrade, the most recent being glibc, and so I'd added it to ignore upgrades. Once the upgrade was fixed I simply commented out the ignore. i.e.

IgnorePkg   = #glibc

which has always been enough to prevent ignoring the package.

Tonight, glibc had an update, and pacman ignored it even though pacman.conf was as above. removing "#glibc" altogether allowed the update.

Is this a bug, or a deliberate change of behaviour?

Last edited by Roken (2020-03-16 20:18:25)


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#2 2020-03-16 19:03:31

NoSavvy
Member
From: Dorchester, Dorset, UK
Registered: 2013-01-23
Posts: 96

Re: [SOLVED] Pacman ignores "commented out" comment for ignored packages

What's with the hash sign??

Offline

#3 2020-03-16 19:16:50

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,251

Re: [SOLVED] Pacman ignores "commented out" comment for ignored packages

It should prevent everything after it being read.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#4 2020-03-16 19:16:59

CarbonChauvinist
Member
Registered: 2012-06-16
Posts: 412
Website

Re: [SOLVED] Pacman ignores "commented out" comment for ignored packages

I'd assume you need to comment out the entire line and not just a value after the line no?


"the wind-blown way, wanna win? don't play"

Offline

#5 2020-03-16 19:33:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Pacman ignores "commented out" comment for ignored packages

man pacman.conf wrote:

Comments are only supported by beginning a line with the hash (#) symbol. Comments cannot begin in the middle of a line.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2020-03-16 20:18:08

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,251

Re: [SOLVED] Pacman ignores "commented out" comment for ignored packages

Wow. Thank you. Weird it always seemed to have worked with a partial comment before. Perhaps it was a bug that's now fixed.

Marking as solved.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#7 2020-03-16 20:58:52

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Pacman ignores "commented out" comment for ignored packages


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#8 2020-03-16 22:37:52

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,251

Re: [SOLVED] Pacman ignores "commented out" comment for ignored packages

Thank you @eschwartz

Glad to know I wasn't going mad.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#9 2020-03-16 23:17:59

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Pacman ignores "commented out" comment for ignored packages

No, you're just running on information that is more than 2 years old. tongue


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB