add-apt-repository will write duplicate entries to /etc/apt/sources.list
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Fix Released
|
Low
|
Brian Murray |
Bug Description
Hello,
Add-apt-repository command allows one to add duplicate entries to sources list. Would it be possible to improve this utility it so it adds only unique entries?
Eg. This command, when run twice, adds duplicate entries.
$ sudo add-apt-repository "deb http://
$ grep -Ri partner /etc/apt/
ProblemType: BugDistroRelease: Ubuntu 11.10
Package: python-
ProcVersionSign
Uname: Linux 3.0.0-11-generic x86_64
NonfreeKernelMo
ApportVersion: 1.23-0ubuntu1
Architecture: amd64
Date: Tue Sep 20 18:38:17 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110919)
PackageArchitec
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- No reviews requested
CVE References
summary: |
- add-apt-repository writes duplicate entries to /etc/apt/sources.list + add-apt-repository will write duplicate entries to /etc/apt/sources.list |
Changed in software-properties (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |
description: | updated |
Changed in software-properties (Ubuntu): | |
assignee: | nobody → Michael Vogt (mvo) |
Changed in software-properties (Ubuntu): | |
assignee: | Michael Vogt (mvo) → Brian Murray (brian-murray) |
status: | Triaged → In Progress |
I was able to confirm this using Oneiric. Thanks for providing detailed steps to recreate this bug.