Fix "autoupdate" target when no new packages are available.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091017041820-tj61sfbw5nz50ioh
This commit is contained in:
Juan RP
2009-10-17 06:18:20 +02:00
parent 22c40a2f91
commit ba1c8971a5
2 changed files with 13 additions and 4 deletions

View File

@@ -226,6 +226,9 @@ xbps_exec_transaction(const char *pkgname, bool force, bool update)
if (rv == ENOENT) {
printf("No packages currently registered.\n");
cleanup(0);
} else if (rv == ENOPKG) {
printf("All packages are up-to-date.\n");
cleanup(0);
}
goto out;
}