Acceptance testing of the RPM build system flushed out a place where /bin/rm
authorrsiddall <rsiddall>
Mon, 20 Apr 2009 20:57:31 +0000 (20:57 +0000)
committerrsiddall <rsiddall>
Mon, 20 Apr 2009 20:57:31 +0000 (20:57 +0000)
stops waiting for input if you're /bin/su as the user doing the build.
Added a -f flag to stop it waiting for input.

rpm/freeside.spec

index 3060089..172b458 100644 (file)
@@ -135,7 +135,7 @@ For security reasons, it is set to conflict with %{name} as you should not insta
 
 %prep
 %setup -q
-%{__rm} bin/pod2x # Only useful to Ivan Kohler now
+%{__rm} -f bin/pod2x # Only useful to Ivan Kohler now
 perl -pi -e 's|/usr/local/bin|%{_bindir}|g' FS/Makefile.PL
 # RPM handles changing file ownership, so Makefile shouldn't
 perl -pi -e 's/\s+-o\s+(freeside|root)(\s+-g\s+\$\{\w+\})?\s+/ /g' Makefile