Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 568892

Summary: mercurial.eclass: mercurial_src_unpack() leaves changed working directory
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: EclassesAssignee: Christoph Junghans (RETIRED) <junghans>
Status: RESOLVED FIXED    
Severity: normal CC: djc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-12-20 18:45:20 UTC
Soooo I did:

  src_unpack() {
    mercurial_src_unpack
    default
  }

And boom!

  >>> Unpacking python-gentoo-patches-2.7.10-0.tar.xz to /var/cache/portage/hg-src/pypy/pypy

So I'm all like errrrrrr, who forgot to restore working directory after cd?
Comment 1 Christoph Junghans (RETIRED) gentoo-dev 2015-12-20 20:48:48 UTC
commit 74f28291906447d61a67d182322d4a5d031a3c0d
Author: Christoph Junghans <ottxor@gentoo.org>
Date:   Sun Dec 20 13:45:53 2015 -0700

    mercurial.eclass: leave unchanged working dir

    Gentoo-bug: 568892