[Rpm-maint] [patch] intelligent processing of arguments

James M. Leddy jm.leddy at gmail.com
Sat Apr 4 02:35:42 UTC 2009


Hi,

I wrote a small patch to address the issues of being able to do a -bp or 
--short-circuit from .src.rpm.

As a side effect, you can now use *tar, *.src.rpm, and *spec for any -b 
argument.  We rely on tar to be able to handle multiple files (*.tar *.tar.bz2 
*.tar.gz), so we should be able to do the same.

This warranted throwing out bigMode suggestion, which is redundant anyway since 
you can use ba->buildMode in build.c.   Also, it required pushing 
rpmInstallSource into buildForTarget, but that doesn't seem to be a big deal 
since we already do it for tar files.

I've done limited sanity testing on --rebuild, --recompile, -b[a|p|b|c] for spec 
files and srcrpms.  Feedback is appreciated.

-- 
James M. Leddy
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: intelligent_switch_on_build.diff
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20090403/69af83d0/attachment.diff>


More information about the Rpm-maint mailing list