summaryrefslogtreecommitdiff
path: root/tools/rpmdeps.c
AgeCommit message (Collapse)AuthorFilesLines
2012-03-29Accept files as command line arguments again in rpmdeps (RhBug:807767)Panu Matilainen1-5/+13
- Commit a25c3c7bac95ab7eb55f0ecf0b8793d8da341611 removed what was supposedly a non-supported method of passing files as arguments (instead of the normal stdin method) to rpmdeps. Turns out rpmdeps is even documented to take files as cli args, and that's how Fedora's %filter_setup macros are calling it... - Allow files as arguments again, but in a way that doesn't cause argvFoo() vs popt crash-n-burn.
2011-05-30Spring-cleaning for rpmdepsPanu Matilainen1-26/+13
- Depgen helpers take nno args, their input comes from stdin. Eliminates popt vs ARGV_t mismatch which would've caused us to blow up if it weren't for a memleak on the generated argv. - Another memleak on the file classifier in case rpmfcClassify() or rpmfcApply() fails - just free all allocated resources at exit. - Remove fluff: fgets() is guaranteed to \0-terminate non-NULL returns, eliminate unused/useless variables - Fixup indentation where busted
2011-04-18Reflect file classifier errors in rpmdeps exit codePanu Matilainen1-8/+6
- rpmfcClassify() or rpmfcApply() failing is pretty fatal to rpmdeps, exit with error code - OTOH argvAdd() and argvSort() can't really fail, ignore their return codes, shutting up another set-but-not-used whine
2010-12-01Make rpmdeps honor RPM_BUILD_ROOT if setPanu Matilainen1-1/+1
- rpmdeps calls the internal dependency generator as an external dependency generator (yes its more than a bit wacky), and the internal generator needs to know the buildroot as path patterns expect non-buildroot paths for accuracy.
2008-04-07ARGV_t const pendantryPanu Matilainen1-1/+1
- const on typedef'ed ARGV_t doesn't mean a thing, add a new, (exec* compatible) ARGV_const_t and use where appropriate consistently in argv.h, rpmcli.h etc - popt's argv const is the wrong way around for exec() family, add explicit ARGV_t casts on popGetArgs() uses where needed - compiler silence, aaahh...
2007-12-08Switch to <rpm/foo.h> style for public headersPanu Matilainen1-4/+4
- adjust include paths accordingly
2007-11-23Use #include <x.h> syntax to include public headers.Ralf Corsépius1-4/+4
2007-10-28Include "rpmfc.h" instead of <rpmfc.h>.Ralf Corsépius1-1/+1
2007-10-28Include "rpmbuild.h" instead of <rpmbuild.h>.Ralf Corsépius1-1/+1
2007-10-28Include "rpmds.h" instead of <rpmds.h>.Ralf Corsépius1-1/+1
2007-10-28Include "argv.h" instead of <argv.h>.Ralf Corsépius1-1/+1
2007-09-25Hide rpmfc structure internals from the APIPanu Matilainen1-3/+2
2007-09-18Change main() to using char *argv[].Ralf Corsépius1-1/+1
2007-09-11Remove splint tags.Ralf Corsépius1-5/+0
2005-03-19Handle %dev markers more gracefully.jbj1-1/+1
CVS patchset: 7826 CVS date: 2005/03/19 20:07:12
2005-01-17Build on macosx.jbj1-0/+1
CVS patchset: 7701 CVS date: 2005/01/17 23:58:09
2002-12-12- fix: add rpmlib(VersionedDependencies) if versioned Provides: found.jbj1-1/+1
CVS patchset: 5937 CVS date: 2002/12/12 19:16:45
2002-12-10Repair fc->skipReq insertion typo.jbj1-3/+0
CVS patchset: 5929 CVS date: 2002/12/10 16:32:27
2002-12-07Handle (N,EVR,Flags) Provide:/Require: triple.jbj1-2/+14
CVS patchset: 5918 CVS date: 2002/12/07 05:48:45
2002-11-26- bundle libfmagic into librpmbuild for now.jbj1-43/+2
CVS patchset: 5881 CVS date: 2002/11/26 22:44:47
2002-11-20- use rpmdeps rather than find-{requires,provides}.jbj1-0/+12
CVS patchset: 5877 CVS date: 2002/11/20 15:13:03
2002-11-19- add AC_SYS_LARGFILE throughout.jbj1-23/+41
- statically link rpmdeps against (internal) libfmagic. CVS patchset: 5876 CVS date: 2002/11/19 18:40:21
2002-11-08Sanity.jbj1-0/+114
CVS patchset: 5843 CVS date: 2002/11/08 22:27:08