Skip to content
Snippets Groups Projects
Commit ddb0b05f authored by Linux User's avatar Linux User
Browse files

display when fetching

parent 57e3393b
No related branches found
No related tags found
No related merge requests found
...@@ -28,8 +28,8 @@ default_cmds="sanitycheck builddeps clean fetch md5check unpack rootpkg" ...@@ -28,8 +28,8 @@ default_cmds="sanitycheck builddeps clean fetch md5check unpack rootpkg"
# functions # functions
msg() { msg() {
local sub= local sub=
[ -n "$subpkgname" ] && sub="(sub)" [ -n "$subpkgname" ] && sub=" ($pkgname)"
[ -z "$quiet" ] && echo ">>> ${subpkgname:-$pkgname} $sub:" "$@" >&2 [ -z "$quiet" ] && echo ">>> ${subpkgname:-$pkgname}$sub:" "$@" >&2
} }
warning() { warning() {
...@@ -91,6 +91,7 @@ uri_fetch() { ...@@ -91,6 +91,7 @@ uri_fetch() {
msg "Partial download found. Trying to resume" msg "Partial download found. Trying to resume"
opts="$opts -c" opts="$opts -c"
fi fi
msg "Fetching $uri"
wget $opts -O "$SRCDEST/$d.part" "$uri" \ wget $opts -O "$SRCDEST/$d.part" "$uri" \
&& mv "$SRCDEST/$d.part" "$SRCDEST/$d" && mv "$SRCDEST/$d.part" "$SRCDEST/$d"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment