From da9b6774c335927a2900aea41175428d5a88a9f4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 25 May 2012 17:58:36 +0200 Subject: [PATCH] Fix previous: propagate "softreplace" obj to pkg being replaced. --- include/xbps_api.h | 2 +- lib/transaction_package_replace.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/xbps_api.h b/include/xbps_api.h index 43e359f5..1b0e5247 100644 --- a/include/xbps_api.h +++ b/include/xbps_api.h @@ -56,7 +56,7 @@ */ #define XBPS_PKGINDEX_VERSION "1.4" -#define XBPS_API_VERSION "20120525-1" +#define XBPS_API_VERSION "20120525-2" #define XBPS_VERSION "0.16" /** diff --git a/lib/transaction_package_replace.c b/lib/transaction_package_replace.c index 9bf07f37..31d496ae 100644 --- a/lib/transaction_package_replace.c +++ b/lib/transaction_package_replace.c @@ -156,6 +156,8 @@ xbps_transaction_package_replace(prop_dictionary_t transd) } prop_dictionary_set_bool(pkg_repod, "automatic-install", instd_auto); + prop_dictionary_set_bool(instd, + "softreplace", true); } /* * Add package dictionary into the transaction and mark