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
This commit is contained in:
Adrian Schröter 2012-02-16 16:12:20 +00:00 committed by Git OBS Bridge
parent 6e55d7df19
commit 29faf4a1e7
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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
}