From f7b6b151cfad5c071eb28e5ab9b167f2b75c907f Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 27 Oct 2012 18:20:03 -0400 Subject: Having no upstream/native sources is not an error. --- 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')" -- cgit v0.9.1