diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-07-25 07:51:16 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-07-25 07:51:16 +0000 |
commit | fff76e3affe453d75ee0f919e838217930974e35 (patch) | |
tree | 96af07fbc603ca78858b79ec15bffcc53ae71d39 /eclass/vcs-snapshot.eclass | |
parent | Took maintaining back (diff) | |
download | historical-fff76e3affe453d75ee0f919e838217930974e35.tar.gz historical-fff76e3affe453d75ee0f919e838217930974e35.tar.bz2 historical-fff76e3affe453d75ee0f919e838217930974e35.zip |
Add some debug.
Diffstat (limited to 'eclass/vcs-snapshot.eclass')
-rw-r--r-- | eclass/vcs-snapshot.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/vcs-snapshot.eclass b/eclass/vcs-snapshot.eclass index ee06bf5befe9..8c144ad1e455 100644 --- a/eclass/vcs-snapshot.eclass +++ b/eclass/vcs-snapshot.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vcs-snapshot.eclass,v 1.6 2013/02/08 20:51:35 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vcs-snapshot.eclass,v 1.7 2013/07/25 07:51:16 mgorny Exp $ # @ECLASS: vcs-snapshot.eclass # @MAINTAINER: @@ -49,6 +49,8 @@ EXPORT_FUNCTIONS src_unpack # local names. Other archive types will be passed down to regular # unpack. vcs-snapshot_src_unpack() { + debug-print-function ${FUNCNAME} "${@}" + local f for f in ${A} @@ -57,6 +59,8 @@ vcs-snapshot_src_unpack() { *.tar|*.tar.gz|*.tar.bz2|*.tar.xz) local destdir=${WORKDIR}/${f%.tar*} + debug-print "${FUNCNAME}: unpacking ${f} to ${destdir}" + # XXX: check whether the directory structure inside is # fine? i.e. if the tarball has actually a parent dir. mkdir "${destdir}" || die @@ -64,6 +68,8 @@ vcs-snapshot_src_unpack() { -f "${DISTDIR}/${f}" || die ;; *) + debug-print "${FUNCNAME}: falling back to unpack for ${f}" + # fall back to the default method unpack "${f}" ;; |