[pacman-dev] [PATCH] repo-add: should have option to prevent downgrading

Ralph Corderoy ralph at inputplus.co.uk
Sun Apr 28 12:20:54 UTC 2019

Hi ekardnam,

> +        printf -- "$(gettext "  --dont-downgrade  do not add package to database if a newer version is already present\n")"
> +                warning "$(gettext "A newer version for '%s' is already present in database")" "$pkgname"

Negative options always read a bit oddly.
How about the positive --keep-new?
That's the sense used in the warning message.

Cheers, Ralph.

More information about the pacman-dev mailing list