socsvn commit: r254917 - soc2013/mattbw/backend/actions

mattbw at FreeBSD.org mattbw at FreeBSD.org
Thu Jul 18 15:53:53 UTC 2013


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);


More information about the svn-soc-all mailing list