xbps-bin: multiple fixes to update packages.

* Fix 'autoupdate' target to look for new packages in ALL repos, not
  just the first one that has the package.
* Fix 'update' target to work correctly.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091016133157-asvkv5jb6i9q2ibe
This commit is contained in:
Juan RP
2009-10-16 15:31:57 +02:00
parent d771383442
commit e1f2a8b7bd
3 changed files with 43 additions and 12 deletions

View File

@ -130,6 +130,11 @@ main(int argc, char **argv)
goto out;
}
}
if ((rv = xbps_prepare_repolist_data()) != 0) {
printf("Couldn't initialized repository pool data (%s)\n",
strerror(rv));
goto out;
}
if (strcasecmp(argv[0], "list") == 0) {
/* Lists packages currently registered in database. */
@ -267,6 +272,7 @@ main(int argc, char **argv)
}
out:
xbps_release_repolist_data();
xbps_release_regpkgdb_dict();
if (rv != 0)
exit(EXIT_FAILURE);