From 29faf4a1e70b8b5df0b1149495830e6ba3dabe663e7dd054ff2e6a2e81701048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 16 Feb 2012 16:12:20 +0000 Subject: [PATCH] Accepting request 105521 from home:aspiers:branches:openSUSE:Tools - When the cache is used, output location of repo in the cache OBS-URL: https://build.opensuse.org/request/show/105521 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=34 --- obs-service-tar_scm.changes | 5 +++++ tar_scm | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/obs-service-tar_scm.changes b/obs-service-tar_scm.changes index 98b6076..bc7e330 100644 --- a/obs-service-tar_scm.changes +++ b/obs-service-tar_scm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 16 15:23:35 GMT 2012 - aspiers@suse.com + +- When the cache is used, output location of repo in the cache + ------------------------------------------------------------------- Tue Feb 14 16:52:19 GMT 2012 - aspiers@suse.com diff --git a/tar_scm b/tar_scm index 23ccd18..69c8017 100644 --- a/tar_scm +++ b/tar_scm @@ -193,6 +193,7 @@ fetch_upstream () { if [ -n "$CACHEDIRECTORY" -a -d "$REPOCACHE/.$MYSCM" ]; then debug "cache hit: $REPOCACHE/.$MYSCM" check_cache + echo "Found $TOHASH in $REPOCACHE; updating ..." update_cache REPOPATH="$REPOCACHE" else @@ -234,6 +235,8 @@ calc_dir_to_clone_to () { } initial_clone () { + echo "Fetching from $MYURL ..." + case "$MYSCM" in git) # Clone with full depth; so that the revision can be found if specified @@ -270,7 +273,7 @@ cache_repo () { debug mv2 "$CLONE_TO" "$REPOCACHE" safe_run mv "$CLONE_TO" "$REPOCACHE" echo "$MYURL" > "$REPOURLCACHE" - echo "cached $MYURL at $REPOCACHE" + echo "Cached $MYURL at $REPOCACHE" fi }