summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ob-unpacksource.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ob-unpacksource.sh b/src/ob-unpacksource.sh
index 9954454..a603393 100644
--- a/src/ob-unpacksource.sh
+++ b/src/ob-unpacksource.sh
@@ -42,7 +42,7 @@ main()
else
if [ -d '../src' ]; then
unpack_native
- else
+ elif get_upstream_archive; then
unpack_upstream
fi
fi
@@ -56,7 +56,6 @@ unpack_native()
unpack_upstream()
{
- get_upstream_archive
get_upstream_compression
get_upstream_dir
extract_upstream
@@ -68,9 +67,11 @@ get_upstream_archive()
upstream_ar="$(find '..' -name "${upstream_ar_base}*")"
case "$(echo "${upstream_ar}" | grep -v '^$' | wc -l)" in
0)
- ob_error "$(ob_get_msg 'no_sources')"
+ ob_info "$(ob_get_msg 'no_sources')"
+ return 1
;;
1)
+ return 0
;;
*)
ob_error "$(ob_get_msg 'multiple_upstream_sources')"