Replies: 3 comments
-
I got part of that explaination worng. Cheers, Valentin |
Beta Was this translation helpful? Give feedback.
-
From the
Given the above, I suspect that upgrade was deemed the safest option. Generally CFEngine has been very cautious about any kind of removal but things change based on user feedback. e.g. now the default options include Looking at the code, I don't see where I don't think I have an objection to adding CFE-2855 is the ticket that tracks the change where |
Beta Was this translation helpful? Give feedback.
-
Thanks for your work
I agree that this is a good and safe option. I think that |
Beta Was this translation helpful? Give feedback.
-
Hi,
tl;dr: package module apt_get is using upgrade, not dist-upgrade for determining updateable packages and therefor will not update from new sources
I recently tried to add a repository containing a patched package version and installing that with cfengine. (my servers are running debian)
I tried to achieve this with a package promise with version => latest and promising a /etc/sources.list.d file.
I then realized that the package would notbe updated and started messing around with removing the package list databases in the state dir to force an update.
Still not successful i asked on IRC and Craig Comstock tried to help me debugging the issue which lead to realization:
The package module apt_get is using upgrade, not dist-upgrade for determining updateable packages and therefor will not update packages from new sources because apt policies prevent that. In the same callout the flag
--ignore-hold
is used, which overrides some apt policies...If i read the old sources correctly the command
apt list --upgradeable
was used previously to do this which would list a upgradeable package from a new source.Does anyone know if there is a reason to do this? or might this just be a bug in the apt_get package module?
Looking forward to read your opinion on this.
Cheers, Valentin
Beta Was this translation helpful? Give feedback.
All reactions