On Thursday 03 of December 2009, Dave Plater wrote:
On 12/03/2009 10:19 AM, Richard Bos wrote:
Op donderdag 03 december 2009 09:08:09 schreef Dave Plater:
Hi, I'm learning packaging the hard way and am trying to build bacula and am trying to debug the %post and %pre scripts and was wondering if there was a way of simulating osc's checks on the rpms when I have built them locally using rpmbuild?
Use 'osc build'. More info with 'osc build --help'
I was looking for a quicker way than using osc build, possibly build the rpm's with rpmbuild and run the checks on the built rpms. Unfortunately osc build doesn't have any --short-circuit capabilities. Is there a way of using rpmlint, it seems to be able to work on directories like $RPM_BUILD_ROOT/package? Then I can update the spec file and run "rpmbuild -bi --short-circuit" and run the check again.
You can use --ccache or --icecream or with osc build to speed up builds. Or you could check the build log from the full osc build and then chroot to /var/tmp/build-root and manually run the commands you want. -- Lubos Lunak KDE developer -------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: l.lunak@suse.cz , l.lunak@kde.org Lihovarska 1060/12 tel: +420 284 084 672 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org