-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow checking for updates without syncing the database #12
Comments
How harmful an "inconsistent state" could be 🤔? I can only think of running Another consideration is that the result of |
UPD: I just realized that we can compare the result of |
OK, maybe using |
Fair enough. Unfortunately right now I am unable to submit a PR due to my employment contract, but if/when I clear it with my employer I am happy to open one. Either way, thanks for the quick response! |
Currently,
pacwatch
checks for updates by callingpacman
(or apacman
wrapper) with options--noconfirm --color=always -Sy
. This means that the package database will always be synced, which can leave the system in an inconsistent state if the user chooses not to update.Therefore, it would be desirable to have the option to check for updates without syncing the package database, which could be achieved for example by using the
checkupdates
script frompacman-contrib
.Note that simply setting the value of the
pacman_command
option tocheckupdates
does not work, because that script does not support any of the options thatpacwatch
passes topacman
.The text was updated successfully, but these errors were encountered: