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 | fe2090790ee9a167f97ef62615dfdf53afbdb42f (patch) | |
tree | 075d77b005735073a8c3b86b31035d6d57aaf052 | |
parent | Took maintaining back (diff) | |
download | gentoo-2-fe2090790ee9a167f97ef62615dfdf53afbdb42f.tar.gz gentoo-2-fe2090790ee9a167f97ef62615dfdf53afbdb42f.tar.bz2 gentoo-2-fe2090790ee9a167f97ef62615dfdf53afbdb42f.zip |
Add some debug.
-rw-r--r-- | eclass/ChangeLog | 5 | ||||
-rw-r--r-- | eclass/vcs-snapshot.eclass | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index eb87a23d08c1..cbacbcc52140 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for eclass directory # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.892 2013/07/24 20:57:38 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.893 2013/07/25 07:51:16 mgorny Exp $ + + 25 Jul 2013; Michał Górny <mgorny@gentoo.org> vcs-snapshot.eclass: + Add some debug. 24 Jul 2013; Tomáš Chvátal <scarabeus@gentoo.org> cmake-utils.eclass: Fix function desc to match reality. 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}" ;; |