Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/pactest/tests
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2008-01-14 20:28:29 +0100
committerDan McGee <dan@archlinux.org>2008-01-14 22:03:03 -0600
commit0c5b68877b107f4844f29eb77a9ea5bf7b73fe01 (patch)
tree6908dd557033cc9547a060b0903ebf673f870d24 /pactest/tests
parent6eee9e987a2dc6eba183f61fb596b7e0b8cc1645 (diff)
Change the versioned provision format.
Change the 'provname provver' format to 'provname=provver'. In .PKGINFO, the provisions are copied from the PKGBUILD without quotes. So the provision version was actually handled as a different provision... See FS#9171. Dan: Unfortunately we have to change our original specification for versioned provisions with this patch, but it ends up being the simpler and cleaner solution in the long run, and if there is any time to change it the time is now before many packages have been built. Keeping the ' ' based format would have required us to do special parsing in repo-add, as well as being susceptible to users not using quotes in their provides array. Hopefully this will resolve the issues we had with our initial plan. Sorry for the confusion. Acked-by: Nagy Gabor <ngaba@bibl.u-szeged.hu> Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/tests')
-rw-r--r--pactest/tests/provision001.py2
-rw-r--r--pactest/tests/provision002.py4
-rw-r--r--pactest/tests/provision011.py2
-rw-r--r--pactest/tests/provision012.py2
-rw-r--r--pactest/tests/provision021.py2
-rw-r--r--pactest/tests/provision022.py2
6 files changed, 7 insertions, 7 deletions
diff --git a/pactest/tests/provision001.py b/pactest/tests/provision001.py
index 36364c16..37e3d935 100644
--- a/pactest/tests/provision001.py
+++ b/pactest/tests/provision001.py
@@ -1,7 +1,7 @@
self.description = "-S provision"
sp = pmpkg("pkg1")
-sp.provides = ["provision 1.0-1"]
+sp.provides = ["provision=1.0-1"]
self.addpkg2db("sync", sp)
self.args = "-S provision"
diff --git a/pactest/tests/provision002.py b/pactest/tests/provision002.py
index fa5f3688..32bc4b8d 100644
--- a/pactest/tests/provision002.py
+++ b/pactest/tests/provision002.py
@@ -1,11 +1,11 @@
self.description = "-S provision"
sp = pmpkg("pkg1")
-sp.provides = ["provision 1.0-1"]
+sp.provides = ["provision=1.0-1"]
self.addpkg2db("sync", sp)
sp = pmpkg("pkg2")
-sp.provides = ["provision 1.0-1"]
+sp.provides = ["provision=1.0-1"]
self.addpkg2db("sync", sp)
self.args = "-S provision"
diff --git a/pactest/tests/provision011.py b/pactest/tests/provision011.py
index 7fd5e6b4..96aac300 100644
--- a/pactest/tests/provision011.py
+++ b/pactest/tests/provision011.py
@@ -5,7 +5,7 @@ p.depends = ["provision>=1.0-2"]
self.addpkg(p)
lp = pmpkg("pkg2", "1.0-2")
-lp.provides = ["provision 1.0-2"]
+lp.provides = ["provision=1.0-2"]
self.addpkg2db("local", lp)
self.args = "-U %s" % p.filename()
diff --git a/pactest/tests/provision012.py b/pactest/tests/provision012.py
index 11cdad4e..f7ed2216 100644
--- a/pactest/tests/provision012.py
+++ b/pactest/tests/provision012.py
@@ -5,7 +5,7 @@ p.depends = ["provision>=1.0-2"]
self.addpkg(p)
lp = pmpkg("pkg2", "1.0-2")
-lp.provides = ["provision 1.0-1"]
+lp.provides = ["provision=1.0-1"]
self.addpkg2db("local", lp)
self.args = "-U %s" % p.filename()
diff --git a/pactest/tests/provision021.py b/pactest/tests/provision021.py
index 4b06a1a7..a98e1f33 100644
--- a/pactest/tests/provision021.py
+++ b/pactest/tests/provision021.py
@@ -5,7 +5,7 @@ p.depends = ["provision>=1.0-2"]
self.addpkg2db("sync", p)
lp = pmpkg("pkg2", "1.0-2")
-lp.provides = ["provision 1.0-2"]
+lp.provides = ["provision=1.0-2"]
self.addpkg2db("local", lp)
self.args = "-S %s" % p.name
diff --git a/pactest/tests/provision022.py b/pactest/tests/provision022.py
index d7f06913..4883d428 100644
--- a/pactest/tests/provision022.py
+++ b/pactest/tests/provision022.py
@@ -5,7 +5,7 @@ p.depends = ["provision>=1.0-2"]
self.addpkg2db("sync", p)
lp = pmpkg("pkg2", "1.0-2")
-lp.provides = ["provision 1.0-1"]
+lp.provides = ["provision=1.0-1"]
self.addpkg2db("local", lp)
self.args = "-S %s" % p.name