summaryrefslogtreecommitdiff
path: root/lib/rpmcli.h
AgeCommit message (Collapse)AuthorFilesLines
2012-01-03Eliminate rpm cli callback internals from the APIPanu Matilainen1-6/+0
- rpmcliHashes*, and rpmcliProgress* and rpmcliPackagesTotal are implementation details of rpmShowProgress() and are useless outside of it. Make them static, these shouldn't have been exported to begin with.
2010-10-22Eliminate useless --fileid query selectorPanu Matilainen1-1/+0
- Finding out which package provides a file with a given digest is just .. useless functionality. Being next to useless is one thing, but we pay a high price for this particular uselessness: the index needed for this is one of the biggest and most expensive indexes we have.
2010-10-12Add support for querying source rpm from spec tooPanu Matilainen1-1/+3
- Handle source rpm query as a new query source type RPMQV_SPECSRPM, rename the binary query to RPMQV_SPECRPMS, with RPMQV_SPECFILE as a backwards compatibility alias to RPMQV_SPECRPMS.
2010-09-29And finally split the signing support into a separate libraryPanu Matilainen1-9/+0
- For a library with just one public function this might seem like a huge overkill but it permits cleanly separating dependencies: nothing but package signing requires GnuPG. This lets the signing support be stuffed into a separate package, avoiding having to drag gpg in on every installation (signing isn't something everybody does) and without having potentially broken interfaces in the API, essentially solving RhBug:624585. It also liberates signing to use libraries that might be off-limits for the core rpm, such as perhaps in the future doing signing by ourselves with the help of something like gpgme (which requires far too many things to drag into core rpm).
2010-09-28Rip the useless %_signature macro and everything around itPanu Matilainen1-3/+1
2010-09-21Stop abusing enum typedefs for bitfield typesPanu Matilainen1-6/+12
- Enums are fine for defining the bitfield flags, but the bitfield itself is not an enumeration. Add a separate typedef on "rpmFlags" type (presenting a bitfield of flags) for all of these. Compilers hardly care, but the typedefs give a nice visual clue for us humans using these flags far away from ho^H^H definitions.
2010-09-08Eliminate qva_mi and qva_gi from rpmQVKArgumentsPanu Matilainen1-2/+0
- These are internal only stuff and have no business being exported in the API. Pass the iterators around in, duh, arguments as needed.
2010-09-08Eliminate rpmQueryVerify() from librpm APIPanu Matilainen1-14/+0
- This is an inconsistent oddball interface which only works for limited query types, "cli" level API users are better off calling rpmcliQuery() / rpmcliArgIter() instead
2010-09-08Urk, mixed up in branches and wrong stuff getting pushed. Revert.Panu Matilainen1-3/+3
- This reverts commits 9ac127c35272772e0fc862608f4bde9748862b3d and 7abc26e300afd4da71f220db496f813571a37f5a
2010-09-07Mark ts argument unused in bunch of query APIsPanu Matilainen1-3/+3
- The ts argument used to be necessary and used for rpmfiNew() and spec query but not any more...
2010-09-07Eliminate rpmcliShowMatches() from librpm APIPanu Matilainen1-13/+0
- This is really just an internal helper which only even works with limited set of queries.
2010-09-03Rip IAM_RPMDB, ie --initdb, --rebuilddb etc modes out of rpmqv.c and librpmPanu Matilainen1-21/+0
- Add popt exec aliases to rpmdb for backwards compatibility - Change test-suite to use 'rpmdb --initdb' instead of 'rpm --initdb' as popt exec aliases with absolute paths dont play very well with the test-suite, duh...
2010-09-03Rip IAM_RPMK, ie --import and --checksig modes out of rpmqv.c + librpmPanu Matilainen1-12/+0
- Add popt exec aliases to rpmkeys for backwards compatibility
2010-09-03Further simplify rpmcliVerifySignatures()Panu Matilainen1-2/+1
- Since this is a rpmcliFoo() function, we can assume rpmcliInit() is used and the verify disabling bits are set through the common rpmcliQueryFlags set, making qva argument unnecessary.
2010-09-03Rrrriiip the addsign/resign/delsign bits out of rpmqv.c + friendsPanu Matilainen1-6/+0
- Add popt exec aliases to rpmsign for backwards compatibility (dejavu...)
2010-09-03Lookup signature type from cli utility alreadyPanu Matilainen1-2/+4
- Avoid relying on the murky rpmLookupSignatureType() foobar on low API level, pass the wanted tag explicitly from caller - rpmLookupSignature(), rpmGetPassPhrase() + the bits they rely on are now free of users within librpm itself
2010-09-03rpmcliSign() only creates or deletes signaturesPanu Matilainen1-6/+5
- Lose the "this has got something to do with signatures and stuff" dispatcher mode, rpmcliSign() now only does what it says. It also doesn't need transaction set for anything. It doesn't need much else than files to operate on, what to do and possibly a passphrase. It probably will need more when rpmLookupSignatureType() is put out of its misery, but this'll do for now. - Lose the now unnecessary passPhrase member from QVA_t
2010-09-03Export the cli-level signature checking as rpmcliVerifySignatures()Panu Matilainen1-0/+9
- Signature verification is completely different from package signing, another step towards making rpmcliSign() do what it's named after
2010-09-03Export rpmcliImportPubkeys() (again) in the public APIPanu Matilainen1-0/+7
- Key import is completely different from package signing, first step in detaching key import from rpmcliSign()
2010-09-03Remove hysterically useless RPMSIGN_NONE + --sign popt leftoversPanu Matilainen1-1/+0
2010-09-03Eliminate unused rootdir member from rpmInstallArgumentsPanu Matilainen1-1/+0
2010-09-03Eliminate unused qva_prefix and qva_verbose from rpmQVKArgumentsPanu Matilainen1-2/+0
2010-09-03Use the common rpmcliQueryFlags for signature verify options in rpm cli tooPanu Matilainen1-1/+0
- Technically this changes the rpmcliQuery() and rpmcliVerify() API in the sense that we no longer honor the qva->qva_flags for the --nosignature and others, but we assume anybody using these (as if anybody was using the "cli" API) uses rpmcliInit() which takes care of these common bits... shrug. - Ditch ancient and hidden --nopgp --nogpg switches along with the dishwater which are simply alias to --nosignature. - Eliminate now unused qva_flags from rpmInstallArguments (along with a double vsflags goo from rpmgraph)
2010-09-01Lift remaining build-related stuff out of librpm over to build-sidePanu Matilainen1-39/+0
- none of this belongs to librpm headers and ABI
2010-08-20Remove signing support from (lib)rpmbuildPanu Matilainen1-2/+0
- Signing is better done in an environment completely separated from the process of actually building packages. This is how its generally done anyway by distros, this change just forces the issue. - While signing on build seems handy and saves some io-churn, this is very insecure as your precious secret passphrase remains unencrypted in memory for the entire duration of the build where it's accessible to whatever happens to be building. This change doesn't affect fix the issue of unencrypted passphrase residing in memory and potentially getting swapped out, it only limits the exposure to the actual signing process which isn't subject to unknown scripts poking around. - Minimally preserve rpmbuild's --sign functionality via popt --pipe hack to call rpm --addsign when build completes
2010-03-19Eliminate hysterical --hdlist query option and everything implementing itPanu Matilainen1-1/+0
- This hidden gem used "system hdlist", ie "/usr/share/comps/%{_arch}/hdlist as the source for queries. Such "system hdlist" hasn't existed anywhere since RHL 9/FC 1 times...
2010-03-19Eliminate --wtfwalk .. err, --ftswalk and everything implementing itPanu Matilainen1-5/+0
- that's what find + xargs are for, this is just useless cruft
2010-03-19Lose unused qva_char and qva_rc fields from rpmQVKArguments structPanu Matilainen1-2/+0
- both are only ever assigned to with useless values and never read...
2009-02-27Add md5->filedigest aliases (rhbz#487597)Jindrich Novy1-0/+2
- add %verify(nofiledigest) as %verify(nomd5) file attribute alias - reference digests as digests not checksums - make old md5 related symbols obsolete and use newer reference - update man page accordingly
2009-02-16-Use installInterfaceFlags in place of eraseInterfaceFlags. -Moved ↵Rakesh Pandit1-1/+0
transaction part from rpmInstall and rpmErase to rpmcliTransaction.
2009-02-16-Merge rpmInstallInterfaceFlags_e and rpmEraseInterfaceFlags_e to ↵Rakesh Pandit1-10/+9
rpmInstallFlags_e.
2008-10-01Kick out yet another ancient artifactPanu Matilainen1-1/+0
- --usecatalog hasn't done anything in 10 years if ever afaict...
2008-07-09Include rpmlib.h from rpmcli.h, legacy stuff expects it there..Panu Matilainen1-0/+1
2008-07-07Kick out ancient, useless and hidden --specedit optionPanu Matilainen1-4/+0
2008-06-09Use rpm_loff_t for transaction callback amount+total argumentsPanu Matilainen1-2/+2
- ought to be safe as data is only ever automatically converted to larger type on notify calls
2008-05-12Convert internal uses of headerSprintf() to headerFormat()Panu Matilainen1-2/+2
2008-04-07ARGV_t const pendantryPanu Matilainen1-8/+8
- 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...
2008-03-24Remove bogus const from rpmRelocation structPanu Matilainen1-1/+1
2008-03-17Remove rollback supportPanu Matilainen1-11/+0
- not possible to do reliably within rpm - effort is better wasted on investigating fs-level snapshots, which is way beyond rpm scope except for hooks to interact with the snapshot mechanism to communicate beginning/end of transaction and such
2008-02-05Yet another typedef for transaction ID, use where spottedPanu Matilainen1-1/+1
- most remaining [u]int16|32 uses are indexes and such, ie actual numbers
2008-02-05Split non-cli verify bits from rpmcli to separate headerPanu Matilainen1-76/+1
2008-02-04Add rpm_off_t type for file size types, use where spottedPanu Matilainen1-2/+2
- preliminaries for bumping up the max size, use rpm-specific type as off_t size varies, header data needs fixed size
2008-01-30rpmlib.h mass evictionPanu Matilainen1-1/+2
- explicitly include what's really needed instead - document remaining uses
2007-12-18Remove bogus const from rpmInstallSource*() parametersPanu Matilainen1-5/+5
- spec and cookie are malloced and need to be freed by caller - unconst various other rpmQVK arguments & friends, no api exists to free them so caller needs to handle anyway
2007-12-08Switch to <rpm/foo.h> style for public headersPanu Matilainen1-7/+7
- adjust include paths accordingly
2007-12-02Move rpmtransFlags enums to rpmts.h where it logically belongsPanu Matilainen1-0/+1
2007-12-02Move RPMFILE_* file attributes to rpmfi.hPanu Matilainen1-0/+1
2007-12-01Don't include idtx.h in rpmcli.hPanu Matilainen1-1/+0
- nothing needs it there, include directly where needed instead
2007-12-01Add separate public header for callback declarationsPanu Matilainen1-0/+1
- rpmmessages is empty, lose it - adjust includes
2007-11-23Add a few missing rpmcli doxygen groupingsPanu Matilainen1-3/+3