summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2014-03-26 14:58:28 +0100
committerMichael Schroeder <mls@suse.de>2014-03-26 14:58:28 +0100
commitf6ec0181558e1a637a90b8b165403d24c93fab90 (patch)
treec2765592475756d4c9a22e7d27abc3695af30dbc /src
parent758254769a053b80e7b6fba6b37e062c1d87d4c7 (diff)
downloadlibsolv-f6ec0181558e1a637a90b8b165403d24c93fab90.tar.gz
libsolv-f6ec0181558e1a637a90b8b165403d24c93fab90.tar.bz2
libsolv-f6ec0181558e1a637a90b8b165403d24c93fab90.zip
support SOLVER_FLAG_DUP_ALLOW* flags in solver_set_flags and bindings
Diffstat (limited to 'src')
-rw-r--r--src/solver.c20
-rw-r--r--src/solver.h4
2 files changed, 24 insertions, 0 deletions
diff --git a/src/solver.c b/src/solver.c
index 8c8e164..5405e9f 100644
--- a/src/solver.c
+++ b/src/solver.c
@@ -1630,6 +1630,14 @@ solver_get_flag(Solver *solv, int flag)
return solv->bestobeypolicy;
case SOLVER_FLAG_NO_AUTOTARGET:
return solv->noautotarget;
+ case SOLVER_FLAG_DUP_ALLOW_DOWNGRADE:
+ return solv->dup_allowdowngrade;
+ case SOLVER_FLAG_DUP_ALLOW_NAMECHANGE:
+ return solv->dup_allownamechange;
+ case SOLVER_FLAG_DUP_ALLOW_ARCHCHANGE:
+ return solv->dup_allowarchchange;
+ case SOLVER_FLAG_DUP_ALLOW_VENDORCHANGE:
+ return solv->dup_allowvendorchange;
default:
break;
}
@@ -1681,6 +1689,18 @@ solver_set_flag(Solver *solv, int flag, int value)
case SOLVER_FLAG_NO_AUTOTARGET:
solv->noautotarget = value;
break;
+ case SOLVER_FLAG_DUP_ALLOW_DOWNGRADE:
+ solv->dup_allowdowngrade = value;
+ break;
+ case SOLVER_FLAG_DUP_ALLOW_NAMECHANGE:
+ solv->dup_allownamechange = value;
+ break;
+ case SOLVER_FLAG_DUP_ALLOW_ARCHCHANGE:
+ solv->dup_allowarchchange = value;
+ break;
+ case SOLVER_FLAG_DUP_ALLOW_VENDORCHANGE:
+ solv->dup_allowvendorchange = value;
+ break;
default:
break;
}
diff --git a/src/solver.h b/src/solver.h
index 7646624..b14e367 100644
--- a/src/solver.h
+++ b/src/solver.h
@@ -275,6 +275,10 @@ typedef struct _Solver Solver;
#define SOLVER_FLAG_KEEP_EXPLICIT_OBSOLETES 11
#define SOLVER_FLAG_BEST_OBEY_POLICY 12
#define SOLVER_FLAG_NO_AUTOTARGET 13
+#define SOLVER_FLAG_DUP_ALLOW_DOWNGRADE 14
+#define SOLVER_FLAG_DUP_ALLOW_ARCHCHANGE 15
+#define SOLVER_FLAG_DUP_ALLOW_VENDORCHANGE 16
+#define SOLVER_FLAG_DUP_ALLOW_NAMECHANGE 17
extern Solver *solver_create(Pool *pool);
extern void solver_free(Solver *solv);