bug: apt-ppa-noninteractive #327
No reviewers
Labels
No labels
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ungleich-public/cdist!327
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "romain-dartigues/cdist:apt-ppa-noninteractive"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm currently subject to a strange bug where the
__apt_ppatype fail expecting an interactive input.Note this pull-request address two distincts issues, I'll split them if you ask.
add-apt-repositorycommand thinking it's running in interactive moderemove-apt-repositorycommand which is not available in my UbuntusFor both cases, the Ubuntu manual seems to allow my patch, but it might need testing under other Debian derivates:
http://manpages.ubuntu.com/manpages/trusty/man1/add-apt-repository.1.html
Environment
Target:
Manifest:
Error:
In Ubuntu Bionic 18.04 and Focal 20.04, the command remove-apt-repository either does not exists or fail in a default installation with the error: ModuleNotFoundError: No module named 'softwareproperties' But add-apt-repository allow removal through the `-r` flag.As @ssrq pointed out in chat,
remove-apt-repositoryis a script installed in/usr/local/bin/by this type itself. The given script will remove the repository via the python API. It looks like at the time where the type was written (11 years ago - 2011), there was no clean method of removing such a repository.I think we can obsolete this old script as it's feature is provided by the official script. I coudn't find a point in changelog where the remove feature was added. As your manual quote is from Ubuntu trusty (14.04) with no older ones at record, it looks like an accurate time it was added. I've found a Stackoverflow anwser which describes workarounds for Ubuntu precise (12.04) in 2015, so I guess it was around this time. Ubuntu trusty is EOL since 2019.
As this is old legacy, I don't think we need to care about backward compatibility. To make this PR complete, it would require to remove the pieces from
remove-apt-repositoryout of the manifest and thefiles/directory.Fun fact: as digging though the changelog, i've noticed that the
add-apt-repositorywas added in 2009 and the-yparameter was added at the 19th April 2011 - while the type was added at 23th March 2011.The existing PR does not look bad to me, don't have an ubuntu at hand right now. I guess if it works with Ubuntu 18.04, then we can merge it - as anything older is ancient anyway.
cc @steven who is maintaining Ubuntu clusters.
@romain-dartigues if using your PR, it would make sense to remove the script
remove-apt-repositoryas well.I missed @matze review and just caught it with your notification nico... I'll work on it quickly; thank you for your feedback.
Edit: (and ping @nico) let me know if it is suffisent.
c98a63451eto54a5cb17b7