ghc_gen_filelists: define basepkg later

just suppressed warning if error encountered around echo
This commit is contained in:
Jens Petersen 2023-01-10 12:47:48 +08:00
parent 7e3e6494e2
commit fc5fb26e31
1 changed files with 2 additions and 2 deletions

View File

@ -84,11 +84,11 @@ fi\
%define pkgname %{?1}%{!?1:%{pkg_name}}\
%define pkgver %{?2}%{!?2:%{version}}\
%define pkgnamever %{pkgname}-%{pkgver}\
%define basepkg %{ghc_prefix}-%{pkgname}\
if [ -z "$(ls %{buildroot}%{ghcliblib}/package.conf.d/%{pkgnamever}*.conf)" ]; then\
echo '%{buildroot}%{ghcliblib}/package.conf.d/%{pkgnamever}*.conf not found'\
echo "%{buildroot}%{ghcliblib}/package.conf.d/%{pkgnamever}*.conf not found"\
exit 1\
fi\
%define basepkg %{ghc_prefix}-%{pkgname}\
rm -f %{basepkg}.files %{basepkg}-doc.files\
touch %{basepkg}.files %{basepkg}-doc.files\
%if 0%{?1:1}\