cleanrm: handle UnsupportedAPIException
authorZac Medico <zmedico@gentoo.org>
Wed, 25 May 2011 04:07:31 +0000 (21:07 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 25 May 2011 04:07:31 +0000 (21:07 -0700)
pym/portage/dbapi/vartree.py

index 5aec973ebaba164e9feeee370167b780cfe9da5a..e29d70e20ee798097b06e97f602731c19611983f 100644 (file)
@@ -1783,8 +1783,11 @@ class dblink(object):
                                                # even though it won't really be sourced.
                                                myebuildpath = os.path.join(self.dbdir,
                                                        self.pkg + ".ebuild")
-                                               doebuild_environment(myebuildpath, "cleanrm",
-                                                       settings=self.settings, db=self.vartree.dbapi)
+                                               try:
+                                                       doebuild_environment(myebuildpath, "cleanrm",
+                                                               settings=self.settings, db=self.vartree.dbapi)
+                                               except UnsupportedAPIException:
+                                                       pass
                                                phase = EbuildPhase(background=background,
                                                        phase="cleanrm", scheduler=scheduler,
                                                        settings=self.settings)