[yum-cvs] yum/rpmUtils/tests updates-test.py,1.1,1.2
Seth Vidal
skvidal at login.linux.duke.edu
Sat Mar 26 16:38:45 UTC 2005
Update of /home/groups/yum/cvs/yum/rpmUtils/tests
In directory login:/tmp/cvs-serv3460/rpmUtils/tests
Modified Files:
updates-test.py
Log Message:
make exactarch not used
exactarchlist is used, If the pkg name exists in this list then it will not
be allowed to change archs. If it does not exist in this list then it will
be allowed to change archs in an update.
Index: updates-test.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/rpmUtils/tests/updates-test.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- updates-test.py 29 Mar 2004 02:12:52 -0000 1.1
+++ updates-test.py 26 Mar 2005 16:38:43 -0000 1.2
@@ -2,14 +2,19 @@
import rpmUtils.updates
instlist = [('foo', 'i386', '0', '1', '1'),
+ ('do', 'i386', '0', '2', '3'),
+ ('glibc', 'i386', '0', '1', '1'),
('bar', 'noarch', '0', '2', '1'),
('baz', 'i686', '0', '2', '3'),
('baz', 'x86_64', '0','1','4'),
('foo', 'i686', '0', '1', '1')]
availlist = [('foo', 'i686', '0', '1', '3'),
+ ('do', 'noarch', '0', '3', '3'),
('foo', 'i386', '0', '1', '3'),
('foo', 'i686', '0', '1', '2'),
+ ('glibc', 'i686', '0', '1', '2'),
+ ('glibc', 'i386', '0', '1', '2'),
('bar', 'noarch', '0', '2', '2'),
('baz', 'noarch', '0', '2', '4'),
('baz', 'i686', '0', '2', '4'),
@@ -24,8 +29,9 @@
up = rpmUtils.updates.Updates(instlist, availlist)
up.debug=1
-up.exactarch=1
-#up.myarch = 'ppc'
+up.exactarch=0
+#up.exactarchlist.append('foo')
+#up.myarch = 'x86_64'
up.doUpdates()
up.condenseUpdates()
More information about the Yum-cvs-commits
mailing list