summaryrefslogtreecommitdiffstats
path: root/lib/package
diff options
context:
space:
mode:
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')"