-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support same options as upstream apt-add-repository #171
Comments
As far as the issue of the error when running without arguments, i may have introduced that when I made a change to allow -h and --help without root, I'm looking into that now. I think this may be what leads you to believe root is not required, nut it is if you actually add or remove a repository. As far as the features go, that's a question of either emulating upstream or just using the upstream package. I believe the mint version was just meant to be a simple wrapper to give some cli support to the gui tools, but not sure. Probably needs to be looked at from further up. |
The first issue is solved:
For the second issue, these are the supported options:
apt-add-repository doesn't update the package cache after updating. |
Is this feature request accepted and can be PRed? |
First off, here's the system I am working on.
Some time ago I had noticed that
apt-add-repository
on Mint was using a Python wrapper script instead of theapt-add-repository
I've been used to.I have now noticed two issues, the bigger one for me being that the
mintsources
version doesn't accept the same command line options (which makes it harder to write scripts usable both on upstream Ubuntu and Mint).Anyway, the first issue is that executing
apt-add-repository
without a command line switch makes the Python code barf. In the upstream version the result is the following error messageError: need a repository as argument
and an exit code of 1. The Mint version gives the following:I guess it should first check that
sys.argv
is non-empty (e.g. vialen(sys.argv)
).... (and oddly enough the Mint version does not require root, whereas the upstream version does with
Error: must run as root
).The second issue is that Mint's version of
apt-add-repository
does not accept-u
or--update
. But on closer inspection this also seems to be true for several other command line switches supported by the upstreamapt-add-repository
.I've been comparing with the upstream version of
apt-add-repository
from Ubuntu 18.04.For reference, the following help output is given by that version of
apt-add-repository
:The text was updated successfully, but these errors were encountered: