Misc syntax errors
Bug #638267 reported by
chocolateboy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ppa-purge |
Fix Released
|
Medium
|
Unassigned |
Bug Description
ppa-purge 0.28 dies with a syntax error when it executes the double loop in the following line (142):
# Disable PPA from sources.list files
for LIST in for LIST in $(find /etc/apt/ -name "*.list" -exec readlink '{}' \;); do; do
The error is:
/usr/
Encountered when trying to uninstall ppa:tiheum/equinox, but I've seen it before. Also reported here
http://
Ubuntu: 10.04
ppa-purge: 0.2.8-1~
sh (dash): 0.5.5.1-3ubuntu2
Changed in ppa-purge: | |
assignee: | nobody → Lorenzo De Liso (blackz) |
importance: | Undecided → Medium |
status: | New → In Progress |
To post a comment you must log in.
Presumably it's a typo as there's only one "done". Changing it to:
for LIST in $(find /etc/apt/ -name "*.list" -exec readlink '{}' \;); do
- fixes that error, but then two additional errors occur:
Updating packages lists sbin/ppa- purge: 165: APT: not found sbin/ppa- purge: 165: APTALT: not found
/usr/
/usr/
If these are changed to $ALT and $APTALT the script works. Patch attached.