add-apt-repository ppa:username does not add deb-src entry

Bug #399711 reported by Dominic Evans
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Fix Released
Low
Andrea Corbellini
Nominated for Lucid by Heimen Stoffels

Bug Description

this is probably related to the fix for bug 301602 but is not exactly a duplicate one

running `sudo add-apt-repository ppa:username` creates /etc/apt/sources.list.d/kwwii-ppa-karmic.list with only the 'deb' entry for the compiled binaries but does not add the corresponding deb-src entry which are also available from the PPA

this prevents the user from trivially investigating/patching the source for a package they found via PPA

ProblemType: Bug
Architecture: i386
Date: Wed Jul 15 13:35:35 2009
DistroRelease: Ubuntu 9.10
Package: python-software-properties 0.75
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_GB.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-3.19-generic
SourcePackage: software-properties
Uname: Linux 2.6.31-3-generic i686

Related branches

Revision history for this message
Dominic Evans (oldmanuk) wrote :
Changed in software-properties (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Heimen Stoffels (vistaus) wrote :

I can confirm this bug.

Will it be fixed when 10.04 comes out?

Changed in software-properties (Ubuntu):
status: Triaged → Confirmed
tags: added: deb software-properties
Changed in software-properties (Ubuntu):
status: Confirmed → Triaged
Changed in software-properties (Ubuntu):
assignee: nobody → Andrea Corbellini (andrea-bs)
status: Triaged → In Progress
Revision history for this message
Ryan Thompson (rct86) wrote :

Without any express or implied warranty, the following workaround worked for me. It searches for any "deb" lines for ppa sources, and adds the corresponding "deb-src" line after it. Furthermore, it makes an effort not to introduce consecutive duplicate lines, and it keeps backups.

sudo perl -lanE '
BEGIN { my $prev_line; }
print if $_ ne $prev_line;
$prev_line = $_ unless m{^\s*(#|$)};
if (m{\Qdeb http://ppa.launchpad.net}) {
    s/^deb/deb-src/; print;
    $prev_line = $_;
}' -iBACKUP /etc/apt/sources.list.d/*.list

Revision history for this message
Dominic Evans (oldmanuk) wrote :

This bug has been sitting waiting in review since 2010-04-01. The .diff is quite small. Any chance we could see it get some movement? :-)

Michael Vogt (mvo)
Changed in software-properties (Ubuntu):
status: In Progress → Fix Committed
Nigel Babu (nigelbabu)
tags: added: patch-forwarded-upstream
Changed in software-properties (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.