[pacman-dev] [PATCH] New sync1007.py pactest

Nagy Gabor ngaba at bibl.u-szeged.hu
Tue Jan 29 07:44:52 EST 2008


From 9274e45ad97cce0749e23340cf51d8a3de0935b9 Mon Sep 17 00:00:00 2001
From: Nagy Gabor <ngaba at bibl.u-szeged.hu>
Date: Tue, 29 Jan 2008 13:43:08 +0100
Subject: [PATCH] New sync1007.py pactest

This pactest shows that checkdeps can be fooled when a package exists in multiple repos.

Signed-off-by: Nagy Gabor <ngaba at bibl.u-szeged.hu>
---
 pactest/tests/sync1007.py |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
 create mode 100644 pactest/tests/sync1007.py

diff --git a/pactest/tests/sync1007.py b/pactest/tests/sync1007.py
new file mode 100644
index 0000000..4245142
--- /dev/null
+++ b/pactest/tests/sync1007.py
@@ -0,0 +1,18 @@
+self.description = "Conflicting package names in sync repos (checkdeps is fooled)"
+
+sp1 = pmpkg("pkg1")
+sp1.depends = [ "pkg2=1.0" ]
+self.addpkg2db("community", sp1)
+
+sp2 = pmpkg("pkg2", "1.1-1")
+self.addpkg2db("testing", sp2)
+
+sp3 = pmpkg("pkg2", "1.0-1")
+self.addpkg2db("extra", sp3)
+
+self.args = "-S pkg1 pkg2"
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_EXIST=pkg1")
+self.addrule("PKG_EXIST=pkg2")
+self.addrule("PKG_VERSION=pkg2|1.0-1")
-- 
1.5.3.8





More information about the pacman-dev mailing list