commit:     540b97e416371c03e681625dd02a8f0eb371e9ab
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Wed Aug  9 20:38:08 2017 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Wed Aug  9 20:39:26 2017 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=540b97e4

GitSync: fix subprocess.CalledProcessError reference (bug 627416)

Fixes: 0e1699ad6b3f ("emerge: Add head commit per repo to --info")

 pym/portage/sync/modules/git/git.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pym/portage/sync/modules/git/git.py 
b/pym/portage/sync/modules/git/git.py
index 8df9ca612..19c167485 100644
--- a/pym/portage/sync/modules/git/git.py
+++ b/pym/portage/sync/modules/git/git.py
@@ -139,6 +139,6 @@ class GitSync(NewBase):
                try:
                        ret = (os.EX_OK, subprocess.check_output(rev_cmd,
                                
cwd=portage._unicode_encode(self.repo.location)))
-               except CalledProcessError:
+               except subprocess.CalledProcessError:
                        ret = (1, False)
                return ret

Reply via email to