diff -Nru ppa-purge-0.2.8+bzr63/debian/changelog ppa-purge-0.2.8+bzr63/debian/changelog --- ppa-purge-0.2.8+bzr63/debian/changelog 2024-03-19 14:58:45.000000000 +0000 +++ ppa-purge-0.2.8+bzr63/debian/changelog 2024-05-13 14:03:51.000000000 +0000 @@ -1,3 +1,10 @@ +ppa-purge (0.2.8+bzr63-0ubuntu1.23.10.2) mantic; urgency=medium + + * Replace awk with sed to avoid dependency issues and update help message. + (LP: #2060544) + + -- Ghadi Elie Rahme Mon, 13 May 2024 14:03:51 +0000 + ppa-purge (0.2.8+bzr63-0ubuntu1.23.10.1) mantic; urgency=medium * Add support for deb822 source format. (LP: #2036761) diff -Nru ppa-purge-0.2.8+bzr63/ppa-purge ppa-purge-0.2.8+bzr63/ppa-purge --- ppa-purge-0.2.8+bzr63/ppa-purge 2024-03-19 14:58:45.000000000 +0000 +++ ppa-purge-0.2.8+bzr63/ppa-purge 2024-05-13 14:03:43.000000000 +0000 @@ -49,8 +49,10 @@ echo " will remove https://launchpad.net/~ubuntu-x-swat/+archive/x-updates" echo echo "Notice: If ppa-purge fails for some reason and you wish to try again," - echo "(For example: you left synaptic open while attempting to run it) simply" - echo "uncomment the PPA from your sources, run apt-get update and try again." + echo "(For example: you left synaptic open while attempting to run it) remove" + echo "the line \"Enabled: no\" from the Components section in the PPA \".sources\"" + echo "file or uncomment the PPA from its \".list\" file, run apt-get update and" + echo "try again." echo exit $1 } @@ -184,7 +186,7 @@ for LIST in $(find /etc/apt/ -name "*.sources" -exec readlink -f '{}' \;); do if [ -e $LIST ] && grep -q $PPAOWNER/$PPANAME $LIST; then sed -i '/^Enabled:/d' "$LIST" - awk -i inplace '/^Components:/ {print; print "Enabled: no"; next}1' "$LIST" + sed -i '/^Components:/aEnabled: no' "$LIST" fi done