ppa-purge fails to remove packages when ppa repository includes a plus in the name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ppa-purge (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When ppa-purge attempts to disable a repository that has a plus in the name, it fails because sed interprets the plus as part of the regular expression.
When running sudo ppa-purge ppa:avsm/
\:^[^#]
Note that this should be:
\:^[^#]
Here is the output I get, showing that the package versions don't change because the repository is not actually removed:
fuzz@UbuFuzz:
Updating packages lists
PPA to be removed: avsm ocaml42+opam120
Package revert list generated:
camlp4/trusty camlp4-extra/trusty ocaml/trusty ocaml-base/trusty
ocaml-base-
ocaml-mode/trusty ocaml-native-
opam-docs/trusty
Disabling avsm PPA from /etc/apt/
\:^[^#]
Updating packages lists
Reading package lists... Done
Building dependency tree
Reading state information... Done
camlp4 is already the newest version.
ocaml is already the newest version.
ocaml-base is already the newest version.
ocaml-base-nox is already the newest version.
ocaml-compiler-libs is already the newest version.
ocaml-interp is already the newest version.
ocaml-native-
ocaml-nox is already the newest version.
ocaml-mode is already the newest version.
camlp4-extra is already the newest version.
opam is already the newest version.
opam-docs is already the newest version.
Selected version '4.02.1+
Selected version '4.02.1+
Selected version '4.02.1-
Selected version '4.02.1-
Selected version '4.02.1-
Selected version '4.02.1-
Selected version '4.02.1-
Selected version '4.02.1-
Selected version '4.02.1-
Selected version '4.02.1-
Selected version '1.2.0-
Selected version '1.2.0-
0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.
PPA purged successfully
fuzz@UbuFuzz:
deb http://
deb-src http://
Related branches
- ppa-purge: Pending requested
-
Diff: 1027 lines (+652/-214) (has conflicts)9 files modifieddebian/changelog (+25/-2)
debian/compat (+1/-1)
debian/control (+12/-12)
debian/copyright (+8/-10)
debian/ppa-purge.8 (+98/-0)
debian/ppa-purge.bash-completion (+86/-67)
debian/ppa-purge.manpages (+1/-1)
dev/null (+0/-33)
ppa-purge (+421/-88)
Status changed to 'Confirmed' because the bug affects multiple users.