Package: software-properties-common
Version: 0.99.27
Severity: wishlist
X-Debbugs-Cc: mdmko...@yahoo.com

Dear Maintainer,

This is a feature request to ask for an option to specify the release/codename
to use when adding a PPA.  Note that this option is likely to be useful for
other types of additions, but I will focus on the PPA case for simplicity.

## Use Case

The use-case to be solved is when a user on for example Ubuntu 23.04 (codename
"lunar") wants to add a PPA using a release/codename other than "lunar".  This
may be required to add PPAs like ppa:aos1/diff-so-fancy or
ppa:appimagelauncher-team/stable that do not yet have a "lunar" release.  (At
the time of this writing the latest releases of these are "jammy" and "kinetic"
respectively.)

However, invoking "apt-add-repository ppa:aos1/diff-so-fancy" always put a
"lunar" line in /etc/apt/sources.list.d/aos1-ubuntu-diff-so-fancy-kinetic.list,
and "apt update" will subsequently fail.

## Requested Feature

My request is that there be added an option similar to --component or --pocket
that allows the user to directly specify the release/codename.  For example,
the user could say "apt-add-repository ppa:aos1/diff-so-fancy --release jammy"
or "apt-add-repository ppa:aos1/diff-so-fancy --codename jammy".  (I am not
sure whether the preferred terminology is "release" or "codename".)

Note that the --pocket option does not solve this problem as that is for
specifying "--pocket updates" to get "lunar-updates".

The --sourceslist option does not fully solve this problem either as it does
not add the key for the PPA to /etc/apt/trusted.gpg.d.

## How to Implement

Note that the code for the base-class of the handlers (in
/usr/lib/python3/dist-packages/softwareproperties/shortcuthandler.py) already
has an argument for specifying the "codename", so I think implementing this
would be as simple as adding a "codename" entry to "shortcut_params" in
/usr/bin/apt-add-repository.


Thank you for your time,
Michael D. Adams


-- System Information:
Debian Release: bookworm/sid
  APT prefers kinetic-updates
  APT policy: (500, 'kinetic-updates'), (500, 'kinetic-security'), (500, 
'kinetic'), (100, 'kinetic-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-29-generic (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages software-properties-common depends on:
ii  ca-certificates              20211016ubuntu0.22.10.1
ii  gir1.2-glib-2.0              1.74.0-2
ii  gir1.2-packagekitglib-1.0    1.2.5-2ubuntu2
ii  packagekit                   1.2.5-2ubuntu2
ii  python-apt-common            2.3.0ubuntu2.1
ii  python3                      3.10.6-1
ii  python3-dbus                 1.2.18-3build1
ii  python3-gi                   3.42.2-2
ii  python3-software-properties  0.99.27

software-properties-common recommends no packages.

software-properties-common suggests no packages.

-- no debconf information

Reply via email to