summaryrefslogtreecommitdiffstats
path: root/lib/package
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-10 15:52:00 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-10 15:52:00 (EST)
commit3a5f2a4f839227f3ee345cb4d657cb425f9058fc (patch)
treef09a758cdcef94662e3cd7c6828a7511b1bf04cd /lib/package
parent5b32c55201104265a092403b0cd490a00989d8f3 (diff)
Don't print error when there's no substvars file.
Diffstat (limited to 'lib/package')
-rw-r--r--lib/package/2.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/package/2.sh b/lib/package/2.sh
index 1c643ef..b9882be 100644
--- a/lib/package/2.sh
+++ b/lib/package/2.sh
@@ -163,7 +163,9 @@ _ob_set_package_substvars_2()
return ${?}
fi
- ob_parse_control "${_OB_PACKAGE_DIR}/substvars" _ob_substvar_2
+ if [ -f "${_OB_PACKAGE_DIR}/substvars" ]; then
+ ob_parse_control "${_OB_PACKAGE_DIR}/substvars" _ob_substvar_2
+ fi
ob_set_substvar 'Source-Version' "$(ob_get_source_parameter 'Version')"
ob_set_substvar 'Binary-Version' "$(ob_get_source_parameter 'Version')"