From 3a488564753cee51832b6824128249a99eb4613b Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Thu, 25 Jun 2009 11:09:40 +0300 Subject: upgrade: add --available option That will make the upgrade prefer packages available in repositories. This is good if one want's to downgrade packages by removing an experimental repository. Or to force re-install of locally built vs. repository version when the package version are same, but checksum is different. Fixes #51. --- src/apk_defines.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/apk_defines.h') diff --git a/src/apk_defines.h b/src/apk_defines.h index ecb80d0..f530e51 100644 --- a/src/apk_defines.h +++ b/src/apk_defines.h @@ -4,7 +4,7 @@ * Copyright (C) 2008 Timo Teräs * All rights reserved. * - * This program is free software; you can redistribute it and/or modify it + * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. See http://www.gnu.org/ for details. */ @@ -59,6 +59,7 @@ extern unsigned int apk_flags; #define APK_PROGRESS 0x0008 #define APK_UPGRADE 0x0010 #define APK_RECURSIVE 0x0020 +#define APK_PREFER_AVAILABLE 0x0040 #define apk_error(args...) apk_log("ERROR: ", args); #define apk_warning(args...) if (apk_verbosity > 0) { apk_log("WARNING: ", args); } -- cgit v1.2.3