Skip to content

Commit d67aebc

Browse files
committed
bin/xbps-install: remove dead assignment
1 parent 5f3844b commit d67aebc

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

bin/xbps-install/transaction.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <stdlib.h>
2929
#include <string.h>
3030
#include <errno.h>
31-
#include <ctype.h>
3231
#include <assert.h>
3332
#include <unistd.h>
3433
#include <limits.h>
@@ -317,9 +316,7 @@ dist_upgrade(struct xbps_handle *xhp, unsigned int cols, bool yes, bool drun)
317316
xbps_error_printf("No packages currently registered.\n");
318317
return 0;
319318
} else if (rv == EBUSY) {
320-
if (drun) {
321-
rv = 0;
322-
} else {
319+
if (!drun) {
323320
xbps_error_printf("The 'xbps' package must be updated, please run `xbps-install -u xbps`\n");
324321
return rv;
325322
}

0 commit comments

Comments
 (0)