Date: Thu, 18 Jul 2013 15:53:52 GMT From: mattbw@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r254917 - soc2013/mattbw/backend/actions Message-ID: <201307181553.r6IFrq6Z055626@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mattbw Date: Thu Jul 18 15:53:52 2013 New Revision: 254917 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=254917 Log: emit (somewhat misleading) error for failed refresh Modified: soc2013/mattbw/backend/actions/refresh_cache.c Modified: soc2013/mattbw/backend/actions/refresh_cache.c ============================================================================== --- soc2013/mattbw/backend/actions/refresh_cache.c Thu Jul 18 14:06:01 2013 (r254916) +++ soc2013/mattbw/backend/actions/refresh_cache.c Thu Jul 18 15:53:52 2013 (r254917) @@ -55,7 +55,7 @@ #include "../actions.h" /* refresh_cache_thread prototype */ #include "../pkgutils.h" /* pkgutils_... */ #include "../query.h" /* query_... */ -#include "../utils.h" /* STATUS */ +#include "../utils.h" /* STATUS, ERR */ /* * The thread that performs a RefreshCache operation. Should be invoked @@ -80,8 +80,12 @@ /* Intentionally silence already-up-to-date errors. */ if (err == EPKG_UPTODATE) err = EPKG_OK; - else if (err != EPKG_OK) + else if (err != EPKG_OK) { + ERR(backend, + PK_ERROR_ENUM_REPO_NOT_AVAILABLE, + "could not update repo"); break; + } } pk_backend_finished(backend);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307181553.r6IFrq6Z055626>