summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-07-25 07:51:16 +0000
committerMichał Górny <mgorny@gentoo.org>2013-07-25 07:51:16 +0000
commitfe2090790ee9a167f97ef62615dfdf53afbdb42f (patch)
tree075d77b005735073a8c3b86b31035d6d57aaf052 /eclass/vcs-snapshot.eclass
parentTook maintaining back (diff)
downloadgentoo-2-fe2090790ee9a167f97ef62615dfdf53afbdb42f.tar.gz
gentoo-2-fe2090790ee9a167f97ef62615dfdf53afbdb42f.tar.bz2
gentoo-2-fe2090790ee9a167f97ef62615dfdf53afbdb42f.zip
Add some debug.
Diffstat (limited to 'eclass/vcs-snapshot.eclass')
-rw-r--r--eclass/vcs-snapshot.eclass8
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}"
;;