Commit Graph

155 Commits

Author SHA1 Message Date
Panu Matilainen 64280efc1e Put the PGP foobar signature generation out of its misery
- the last freeware PGP version (6.5.8) is from year 2000 and doesn't
  come close to compiling on modern distros, commercial versions we're
  not interested in
- "PGP" signatures in rpm mean RSA, gpg can handle that just fine since
  forever
- the code's been unused for years, unlikely to be functional anyway...
2009-03-26 09:59:01 +02:00
Panu Matilainen 2e672f3fae Show query/verify selection options just once in --help 2009-03-19 16:07:18 +02:00
Jindrich Novy 7acdfded4a Add md5->filedigest aliases (rhbz#487597)
- 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-27 14:34:39 +01:00
Rakesh Pandit 430b8cc377 -Use installInterfaceFlags in place of eraseInterfaceFlags. -Moved transaction part from rpmInstall and rpmErase to rpmcliTransaction. 2009-02-16 09:27:58 +02:00
Panu Matilainen e0f57801c0 Permit --noscripts on verify (to disable %verifyscript execution)
- this used to work but got broken by the rpmi/rpmq/... unification
2008-12-18 09:51:37 +02:00
Panu Matilainen 0372f7d8b4 Read default popt aliases again (rhbz#473167)
- makes testsuite depend on local aliases but using default popt config
  is widely documented and needs to work, testsuite needs a better method
  of disabling it if necessary
2008-11-29 14:34:01 +02:00
Panu Matilainen 43b08986a8 Use rpmConfigDir() for finding our popt alias file
- this allows popt aliases to be reliably available in tests
- why do we have the popt initialization done twice?
2008-11-22 18:08:40 +02:00
Panu Matilainen 997f5a24c5 Force "rpm" popt context for everything but build
- we want the same set of aliases to be seen no matter what name we're
  invoked with, except for build which has it's own set of aliases
- this has a nice little side-effect of permitting popt aliases to work
  from source tree on non-static builds despite libtool calling executables
  lt-something instead of their real names
2008-06-25 09:40:04 +03:00
Panu Matilainen cb17fb722c Eliminate rpmd, rpmi, rpmk, rpmq "helper binaries"
- it's all rolled into "rpm" itself, these are just clutter and complicate
  things needlessly
- leave symlinks to rpmquery, rpmverify, rpmsign and rpmdb -> rpm to
  preserve some compatibility (at least rpmquery is known to be used
  in scripts)
2008-06-25 09:40:04 +03:00
Panu Matilainen 6f06fff348 Eliminate the pointless rpmb + rpmt symlinkery
- just build "rpmbuild" executable and install to bindir instead of
  mucking with several different names
2008-06-24 11:08:05 +03:00
Panu Matilainen 961b6c4b2f Check for pipe() return code on --pipe 2008-05-05 07:37:50 +03:00
Panu Matilainen 3e6009a744 Ensure default SIGPIPE handler for --pipe (rhbz#444389) 2008-05-02 11:40:29 +03:00
Panu Matilainen c29adcee80 ARGV_t const pendantry
- 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-04-07 12:19:58 +03:00
Panu Matilainen e501ac2e77 Remove bogus const from rpmRelocation struct 2008-03-24 22:42:34 +02:00
Panu Matilainen 37543ee040 Remove rollback support
- 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-03-17 11:53:27 +02:00
Panu Matilainen ef84de8868 Refcount dbiTags on db open+close, automatically free
- avoids rpmdb_internal include in rpmqv.c and memleak in API clients
- avoids having to export dbiTags(Max) at all
2008-03-12 13:20:47 +02:00
Panu Matilainen 7585967f47 Play nice with xargs
- xargs considers exit status 255 special, avoid it. The exit status is
  unrealiable anyway so 254 vs 255 shouldn't matter

Patch from Michal Marek
2008-02-11 20:45:15 +02:00
Panu Matilainen eb5dc35c19 Include spring-cleaning
- put some consistency into include ordering
- everything (apart from bits missed ;) is now ordered like this
  1. "system.h"
  2. other system includes
  3. rpm public headers
  4. rpm private headers
  5. "debug.h"
2008-01-30 17:05:29 +02:00
Panu Matilainen 99faa2735b rpmlib.h mass eviction
- explicitly include what's really needed instead
- document remaining uses
2008-01-30 13:53:51 +02:00
Panu Matilainen c80bd01564 Print --usage to stderr instead of stdout (rhbz#164021)
Patch derived from rpm5.org work of Jeff Johnson
2008-01-07 15:37:43 +02:00
Panu Matilainen a631616ce1 Use constfree on relocations for now
- they're totally exposed all they way to rpmqv.c.. eww
2007-12-18 12:07:48 +02:00
Panu Matilainen bb61fa21e8 Remove bogus const from rpmInstallSource*() parameters
- 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-18 11:56:54 +02:00
Panu Matilainen 9ce13e09ef Switch to <rpm/foo.h> style for public headers
- adjust include paths accordingly
2007-12-08 14:02:32 +02:00
Panu Matilainen 89527785bb Move logging related macros rpmlog, adjust includes 2007-11-30 23:08:38 +02:00
Ralf Corsépius c78e4767c2 Expand private include file names to be relative to $(top_srcdir) 2007-11-23 11:48:18 +01:00
Ralf Corsépius abeea80a38 Use #include <x.h> syntax to include public headers. 2007-11-23 06:46:19 +01:00
Panu Matilainen b6a1ee9bb7 Make "rpmbuild -bb --quiet" quiet as should be
(without this patch, the option is simply ignored in rpmcliAllPoptTable)

Also rhbz#124300

Patch from Pascal Rigaux
2007-11-13 13:09:01 +02:00
Ralf Corsépius 14d434925b Include "rpmbuild.h" instead of <rpmbuild.h>. 2007-10-28 06:49:54 +01:00
Ralf Corsépius cff3ba0882 Include "rpmcli.h" instead of <rpmcli.h>. 2007-10-28 06:47:14 +01:00
Ralf Corsépius 519977112e Stop messing around with triple-arg'ed main. 2007-10-27 06:19:26 +02:00
Panu Matilainen 56366e3890 Replace all uses of RPMMESS_NORMAL with RPMLOG_NOTICE 2007-10-09 14:50:42 +03:00
Panu Matilainen cd5956633e Silence compiler whining from bad popt argv definition 2007-09-21 13:09:18 +03:00
Panu Matilainen a6e75c7595 Rename freeFilesystems() to rpmFreeFilesystems() for namespacing 2007-09-20 15:22:59 +03:00
Ralf Corsépius 90688278db Change main() to using char *argv[]. 2007-09-18 05:53:37 +02:00
Panu Matilainen 66dcee4a67 Hide db index handling and rpmdb details from the API to internal header 2007-09-17 13:17:07 +03:00
Ralf Corsépius 7484efff8e Apply poptReadDefaultConfig iff RPM_USES_POPTREADDEFAULTCONFIG is set. 2007-09-17 11:28:27 +02:00
Panu Matilainen cc68353128 Remove url caching, don't need it... 2007-09-17 10:31:18 +03:00
Ralf Corsépius a5a65af57e Remove splint tags. 2007-09-11 19:04:11 +02:00
Panu Matilainen 1535dc8bb7 Remove a couple remaing LCLINT ifdefs 2007-09-03 21:55:26 +03:00
Panu Matilainen 9b91c4a2fc Fix permissions 2007-08-08 15:18:52 +03:00
Paul Nasrat e71dd23825 Check rpmtsInitDB return value. Also patches rpm.c, which
actually is not used anymore.
Patch from OpenSuSE
2007-04-16 13:21:22 +01:00
Paul Nasrat 332cb7d273 Allow "--ignoresize" for erase operations.
Patch from OpenSuSE
2007-04-16 13:15:10 +01:00
jbj 1a42537124 - permit RSA/{sha1,sha256,sha384,sha512} signature verification.
CVS patchset: 7805
CVS date: 2005/03/13 01:56:50
2005-03-13 01:56:50 +00:00
jbj 217c588baa Build on macosx.
CVS patchset: 7701
CVS date: 2005/01/17 23:58:09
2005-01-17 23:58:09 +00:00
jbj 910c42099e - add --delsign to purge packages of digital signatures.
CVS patchset: 7569
CVS date: 2004/11/10 00:50:41
2004-11-10 00:50:41 +00:00
jbj 0f86e55aa4 Wire ftsOpts globally.
CVS patchset: 7510
CVS date: 2004/10/25 15:26:51
2004-10-25 15:26:51 +00:00
jbj 7c25d1ffae Add undocumented --hdlist and --ftswalk query/verify sources.
Bugs:
 * @todo hdlist should use argv to open system hdlist path.

CVS patchset: 7508
CVS date: 2004/10/25 01:10:13
2004-10-25 01:10:13 +00:00
jbj 07444608bc - bump rpm and popt versions to insure "newer".
- change default behavior to resolve file conflicts as LIFO.
- add --fileconflicts to recover rpm traditional behavior.
- prefer elf64 over elf32 files, everywhere and always (#126853).

CVS patchset: 7354
CVS date: 2004/07/05 15:24:17
2004-07-05 15:24:17 +00:00
jbj 9c5529608e - don't use error string after gzclose (Dmitry V. Levin).
Spliddles for rpmio, drill h_errno all the way through.

CVS patchset: 6826
CVS date: 2003/05/08 20:39:29
2003-05-08 20:39:29 +00:00
jbj c63f257a7e - fix: clean relocation path for --prefix=/.
- python: permit stdout/stderr to be remapped to install.log.

CVS patchset: 6031
CVS date: 2003/01/28 17:17:26
2003-01-28 17:17:26 +00:00