xbps-bin: use -f to bypass questions while installing/removing.
--HG-- extra : convert_revision : edefc4dbf4dbbcdac53579100732e77004a45463
This commit is contained in:
parent
58c6a31297
commit
f0f53cb07e
4 changed files with 26 additions and 19 deletions
|
@ -66,7 +66,7 @@ show_missing_dep_cb(prop_object_t obj, void *arg, bool *loop_done)
|
|||
}
|
||||
|
||||
void
|
||||
xbps_install_pkg(const char *pkg, bool update)
|
||||
xbps_install_pkg(const char *pkg, bool force, bool update)
|
||||
{
|
||||
prop_dictionary_t props, instpkg;
|
||||
prop_array_t array;
|
||||
|
@ -183,10 +183,12 @@ xbps_install_pkg(const char *pkg, bool update)
|
|||
}
|
||||
printf("Total installed size: %s\n\n", size);
|
||||
|
||||
if (xbps_noyes("Do you want to continue?") == false) {
|
||||
printf("Aborting!\n");
|
||||
prop_object_release(props);
|
||||
exit(EXIT_SUCCESS);
|
||||
if (force == false) {
|
||||
if (xbps_noyes("Do you want to continue?") == false) {
|
||||
printf("Aborting!\n");
|
||||
prop_object_release(props);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
}
|
||||
|
||||
printf("Checking binary package file(s) integrity...\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue