summaryrefslogtreecommitdiff
path: root/test/upgrade1.test
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-10-06 16:30:09 +0300
committerTimo Teräs <timo.teras@iki.fi>2014-10-06 16:30:09 +0300
commite0f9b0897be8e5524eaeef302249c90498d3218a (patch)
treef03e9a8cc201c267ffa2152a78b71638438b84c9 /test/upgrade1.test
parentf2d9a1440546da4fc9302a93370039b3a12c77ce (diff)
downloadapk-tools-e0f9b0897be8e5524eaeef302249c90498d3218a.tar.gz
apk-tools-e0f9b0897be8e5524eaeef302249c90498d3218a.tar.bz2
apk-tools-e0f9b0897be8e5524eaeef302249c90498d3218a.tar.xz
apk-tools-e0f9b0897be8e5524eaeef302249c90498d3218a.zip
solver: enforce conflicts during upgrades and new pkg installs
This makes sure any conflicted packages will be removed first. Useful if we know there are conflicting files, and want to avoid adding potentially harmful replaces line. Add a test case for this too.
Diffstat (limited to 'test/upgrade1.test')
-rw-r--r--test/upgrade1.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/upgrade1.test b/test/upgrade1.test
new file mode 100644
index 0000000..f437590
--- /dev/null
+++ b/test/upgrade1.test
@@ -0,0 +1,10 @@
+@ARGS
+--test-repo upgrade.repo
+--test-instdb upgrade.installed
+--test-world app
+upgrade
+@EXPECT
+(1/3) Purging libold (1)
+(2/3) Installing libnew (1)
+(3/3) Upgrading app (1 -> 2)
+OK: 0 MiB in 2 packages