From 561783f0029013dfdbea19142635e63e3a282cc1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 14 May 2010 02:27:38 +0200 Subject: [PATCH] fetch_funcs: print a message if using $nofetch. --- xbps-src/shutils/fetch_funcs.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/xbps-src/shutils/fetch_funcs.sh b/xbps-src/shutils/fetch_funcs.sh index 8f6a033cc07..5e393579fd0 100644 --- a/xbps-src/shutils/fetch_funcs.sh +++ b/xbps-src/shutils/fetch_funcs.sh @@ -62,20 +62,18 @@ fetch_distfiles() # If nofetch is set in a build template, skip this phase # entirely and run the do_fetch() function. # - if [ -n "$nofetch" ]; then - cd ${XBPS_BUILDDIR} && run_func do_fetch 2>/dev/null - if [ $? -ne 0 && $? -ne 255 ]; then - return $? - fi - fi - - cd $XBPS_SRCDISTDIR || return 1 if [ -n "$revision" ]; then lver="${version}_${revision}" else lver="${version}" fi + if [ -n "$nofetch" ]; then + msg_normal "Package '$pkgname ($lver)': running do_fetch phase." + cd ${XBPS_BUILDDIR} && run_func do_fetch 2>/dev/null && return $? + fi + + cd $XBPS_SRCDISTDIR || return 1 for f in ${distfiles}; do curfile=$(basename $f) if [ -f "$XBPS_SRCDISTDIR/$curfile" ]; then