Public bug reported:

If the DISTRIB_ID in /etc/lsb-release is not 'ubuntu' add-apt-
repositories will use the latest series of the PPA even if the
DISTRIB_CODENAME would match with what is available in the PPA.

# Test Case

- change lsb-release to say DISTRIB_ID=yolo
- copy /usr/share/python-apt/templates/Ubuntu.info to 
/usr/share/python-apt/templates/yolo.info
- sudo add-apt-repository ppa:graphics-drivers/ppa 
- should add xenial to sources.list.d

# Regression potential

The current behavior of using the latest series is last ditch effort at
come up with anything valid. The proposed change simply extends the
acceptable deviation from 100 match.

# Other info

Change has been used in production in KDE neon for months now. No side
effects observed.

** Affects: software-properties (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: software-properties (Ubuntu Xenial)
     Importance: Undecided
         Status: In Progress

** Affects: software-properties (Ubuntu Yakkety)
     Importance: Undecided
         Status: Fix Released

** Also affects: software-properties (Ubuntu Yakkety)
   Importance: Undecided
       Status: In Progress

** Also affects: software-properties (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: software-properties (Ubuntu Xenial)
       Status: New => In Progress

** Changed in: software-properties (Ubuntu Yakkety)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1612669

Title:
  wrong PPA series used if system name not Ubuntu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1612669/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to