Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#18950 - [pm-utils] remove_parameters() function is broken
Attached to Project:
Arch Linux
Opened by Peter Wegas (ccc1) - Saturday, 03 April 2010, 18:11 GMT
Last edited by Ionut Biru (wonder) - Saturday, 03 April 2010, 18:51 GMT
Opened by Peter Wegas (ccc1) - Saturday, 03 April 2010, 18:11 GMT
Last edited by Ionut Biru (wonder) - Saturday, 03 April 2010, 18:51 GMT
|
Detailsthe remove_parameters() function in /usr/lib/pm-utils/functions uses grep to remove parameters from the parameter list:
"if [ "$1" = "all" ]; then echo '' > "$PARAMETERS.new" else echo '' >"$PARAMETERS.rm" for p in "$@"; do echo "$p" >> "$PARAMETERS.rm" done # let grep do the dirty work. grep -vxFf "$PARAMETERS.rm" "$PARAMETERS" > "$PARAMETERS.new" fi" but since $PARAMETERS.rm has an empty line at the beginning, grep will just write $PARAMETERS to sdtout. this behavior of grep is intented. see: http://lists.gnu.org/archive/html/bug-grep/2010-04/msg00037.html |
This task depends upon
sorry for the spam.