Skip to content

Commit

Permalink
fix a typo to build correct lenovo and notlenovo packages (#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
tingtli authored and immarvin committed Nov 11, 2016
1 parent 9b82c38 commit 3a09a46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xCAT-server/xCAT-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ rm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/PPC.pm
rm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT_monitoring/snmpmon.pm
rm $RPM_BUILD_ROOT/%{prefix}/sbin/xcat_traphandler
%endif
%if lenovo
%if %lenovo
rm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/PPC.pm
rm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT_plugin/hpilo.pm
rm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT_plugin/hpblade.pm
Expand Down
2 changes: 1 addition & 1 deletion xCAT/xCAT.spec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Provides: xCAT = %{version}
Conflicts: xCATsn
%define lenovo %(if [ "$lenovobuild" = "1" ];then echo 1; else echo 0; fi)
%define notlenovo %(if [ "$lenovobuild" = "1" ];then echo 0; else echo 1; fi)
%if lenovo
%if %lenovo
Requires: xCAT-server xCAT-client perl-DBD-SQLite xCAT-probe >= 2.12.1 xCAT-genesis-scripts-x86_64
%else
Requires: xCAT-server xCAT-client perl-DBD-SQLite xCAT-probe >= 2.12.1 xCAT-genesis-scripts-x86_64 xCAT-genesis-scripts-ppc64
Expand Down

0 comments on commit 3a09a46

Please sign in to comment.