[pacman-dev] [PATCH] src/pacman/sync.c : cleanup of pacman_sync
Nagy Gabor
ngaba at bibl.u-szeged.hu
Mon Jun 2 07:18:31 EDT 2008
> @@ -861,7 +823,43 @@ int pacman_sync(alpm_list_t *targets)
> return(sync_list(sync_dbs, targets));
> }
>
> - return(0);
> + if(targets == NULL) {
> + if(config->op_s_sync) {
> + return(0);
I may overlook something, but won't this break -Syu?
> + } else if(config->op_s_upgrade) {
> + /* proceed */
> + } else {
> + /* don't proceed here unless we have an
> operation that doesn't require a
> + * target list */
> + pm_printf(PM_LOG_ERROR, _("no targets
> specified (use -h for help)\n"));
> + return(1);
> + }
> + }
Bye
----------------------------------------------------
SZTE Egyetemi Könyvtár - http://www.bibl.u-szeged.hu
This mail sent through IMP: http://horde.org/imp/
More information about the pacman-dev
mailing list