summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--subr.ex/ex_rtl_rpm.subr4
1 files changed, 3 insertions, 1 deletions
diff --git a/subr.ex/ex_rtl_rpm.subr b/subr.ex/ex_rtl_rpm.subr
index 871abf6a..7c89acb3 100644
--- a/subr.ex/ex_rtl_rpm.subr
+++ b/subr.ex/ex_rtl_rpm.subr
@@ -101,7 +101,9 @@ ex_rtl_build_rpm() {
> "${_erbr_spec_fname_tgt}" \
&& (cd "${_erbr_destdir}"; \
find -mindepth 1 \( -type f -or -type l \) | \
- sed -e 's,^./,'"/"',') \
+ sed -e 's,^./,'"/"',' \
+ -e 's/^/"/' \
+ -e 's/$/"/') \
>> "${_erbr_spec_fname_tgt}" \
&& sed -n -e '/^%files$/,${/^%files$/d;p}' \
"${_erbr_spec_fname_tgt_tmp}" \