wish: add-apt-repository needs to know distro code

Bug #686348 reported by Carl Karsten on 2010-12-07
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Software Properties
Fix Released

Bug Description

This is a bug report for me to hang a patch off of.

I mainly want to avoid this $(bashism):
apt-add-repository 'deb http://packages.medibuntu.org/ '$(lsb_release -cs)' free non-free'

and softwareproperties/SoftwareProperties.py has .distro.codename, so I use it.

If it isn't clear, the new docs should:

+<sourceline> - The apt repository source line to add. This is one of:
+ a complete apt line in quotes,
+ a repo url and areas in quotes (areas defaults to 'main')
+ a PPA shortcut.

     apt-add-repository 'deb http://myserver/path/to/repo stable myrepo'
+ apt-add-repository 'http://myserver/path/to/repo myrepo'
+ apt-add-repository "https://packages.medibuntu.org free non-free"
+ apt-add-repository http://extras.ubuntu.com/ubuntu
     apt-add-repository ppa:user/repository

Related branches

Didier Roche (didrocks) on 2010-12-07
Changed in software-properties:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers