Closed mondeja closed 3 years ago
@mondeja
This is an expected issue. Let me explain. From the original pacman
, it's not recommended to use pacman -Sy foo
to install some package and update package database at the same time (hence the warning).
pacapt
tries to generate that warning, but it isn't smart enough to know if --quiet
is a dpkg's option or package name. To avoid that problem you've facing, this line
https://github.com/icy/pacapt/blob/d51ec5ecd9f98815da4511855bd1b074cccb763e/lib/zz_main.sh#L281
must be rewritten. I don't think that's really easy. So far simply invoking pacman -Sy
is the best way.
From the original pacman, it's not recommended to use pacman -Sy foo to install some package and update package database at the same time (hence the warning).
It would be sufficient to display the warning only if all passed arguments don't start with -
character? An argument like -q
, -qq
or --quiet
it would be very strange if it were a package to install. What do you think?
You're right. For --quiet
I think that's possible/easy: https://github.com/icy/pacapt/pull/177/files , please have a look.
I've invited you to the project. I will do that for other contributors for a convenience purpose (PR review request, build status,...) Feel free to join, and thanks.
I've seen this
FIXME
indpkg_Sy
:I can pass options after
update
in theapt-get
command:but trying that with
pacapt
displays a warning: