Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/test/pacman/tests/sync-update-package-removing-required-provides.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/pacman/tests/sync-update-package-removing-required-provides.py')
-rw-r--r--test/pacman/tests/sync-update-package-removing-required-provides.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/pacman/tests/sync-update-package-removing-required-provides.py b/test/pacman/tests/sync-update-package-removing-required-provides.py
new file mode 100644
index 00000000..19bfd922
--- /dev/null
+++ b/test/pacman/tests/sync-update-package-removing-required-provides.py
@@ -0,0 +1,23 @@
+self.description = "Upgrade a package that loose a provides entry which moves to a dedicated package"
+
+lp1 = pmpkg("pkg1", "1-1")
+lp1.provides = ["feature=1"]
+lp2 = pmpkg("pkg2")
+lp2.depends = ["feature"]
+
+for p in lp1, lp2:
+ self.addpkg2db("local", p)
+
+sp1 = pmpkg("pkg1", "2-1")
+# NOTE: no provides for feature anymore
+sp2 = pmpkg("feature", "2-1")
+
+for p in sp1, sp2:
+ self.addpkg2db("sync", p)
+
+self.args = "-Su"
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_VERSION=feature|2-1")
+self.addrule("PKG_VERSION=pkg1|2-1")
+self.expectfailure = True