Tests: Fix typo bug ResolverPlayground
authorSebastian Luther <SebastianLuther@gmx.de>
Thu, 12 Aug 2010 10:29:05 +0000 (12:29 +0200)
committerZac Medico <zmedico@gentoo.org>
Thu, 12 Aug 2010 10:40:45 +0000 (03:40 -0700)
pym/portage/tests/resolver/ResolverPlayground.py

index d1ec55b82c1ca14502be14ad34c7dd7eaf8c37dc..947c5c7caf17e5212769224dea42d1856df2d39c 100644 (file)
@@ -76,7 +76,7 @@ class ResolverPlayground(object):
                        f.write('DEPEND="' + str(depend) + '"\n')
                        if rdepend is not None:
                                f.write('RDEPEND="' + str(rdepend) + '"\n')
-                       if rdepend is not None:
+                       if pdepend is not None:
                                f.write('PDEPEND="' + str(pdepend) + '"\n')
                        if required_use is not None:
                                f.write('REQUIRED_USE="' + str(required_use) + '"\n')
@@ -128,7 +128,7 @@ class ResolverPlayground(object):
                        write_key("DEPEND", depend)
                        if rdepend is not None:
                                write_key("RDEPEND", rdepend)
-                       if rdepend is not None:
+                       if pdepend is not None:
                                write_key("PDEPEND", pdepend)
                        if required_use is not None:
                                write_key("REQUIRED_USE", required_use)