~ubuntu-branches/ubuntu/precise/rpm/precise-proposed

« back to all changes in this revision

Viewing changes to rpmqv.c

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2010-06-28 11:12:30 UTC
  • mfrom: (17.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100628111230-8ggjjhgpvrnr3ybx
Tags: 4.8.1-5
Fix compilation on hurd and kfreebsd (Closes: #587366).

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
long _stksize = 64 * 1024L;
128
128
#endif
129
129
 
 
130
RPM_GNUC_NORETURN
130
131
static void argerror(const char * desc)
131
132
{
132
133
    fprintf(stderr, _("%s: %s\n"), __progname, desc);
210
211
 
211
212
    /* Set the major mode based on argv[0] */
212
213
#ifdef  IAM_RPMBT
213
 
    if (!strcmp(__progname, "rpmbuild"))        bigMode = MODE_BUILD;
 
214
    if (rstreq(__progname, "rpmbuild")) bigMode = MODE_BUILD;
214
215
#endif
215
216
#ifdef  IAM_RPMQV
216
 
    if (!strcmp(__progname, "rpmquery"))        bigMode = MODE_QUERY;
217
 
    if (!strcmp(__progname, "rpmverify"))       bigMode = MODE_VERIFY;
 
217
    if (rstreq(__progname, "rpmquery")) bigMode = MODE_QUERY;
 
218
    if (rstreq(__progname, "rpmverify")) bigMode = MODE_VERIFY;
218
219
#endif
219
220
 
220
221
#if defined(IAM_RPMQV)
392
393
#if defined(IAM_RPMEIU)
393
394
#if defined(ON_DEBIAN)
394
395
    if ((bigMode == MODE_INSTALL || bigMode == MODE_ERASE) &&
395
 
        (ia->probFilter & RPMPROB_FILTER_DEBIAN) == 0) 
396
 
        argerror(_("please use alien to install rpm packages on Debian, if you are really sure "
397
 
                   "use --force-debian switch. See README.Debian for more details."));
 
396
        (ia->probFilter & RPMPROB_FILTER_DEBIAN) == 0) {
 
397
        fprintf(stderr, _("%s: %s\n"), __progname, _("RPM should not be used directly install RPM packages, use Alien instead!"));
 
398
        fprintf(stderr, _("%s: %s\n"), __progname, _("However assuming you know what you are doing..."));
 
399
    }
398
400
#endif
399
401
 
400
402
    if (!( bigMode == MODE_INSTALL ) &&
545
547
                  case 0:
546
548
                    break;
547
549
                  case RPMSIGTAG_PGP:
548
 
#ifdef  DYING   /* XXX gpg can now be used for RSA signatures. */
549
 
                    if ((sigTag == RPMSIGTAG_PGP || sigTag == RPMSIGTAG_PGP5) &&
550
 
                        !rpmDetectPGPVersion(NULL)) {
551
 
                        fprintf(stderr, _("pgp not found: "));
552
 
                        ec = EXIT_FAILURE;
553
 
                        goto exit;
554
 
                    }
555
 
#endif
556
550
                  case RPMSIGTAG_GPG:
557
551
                  case RPMSIGTAG_DSA:
558
552
                  case RPMSIGTAG_RSA: