dcavalca / rpms / rpm

Forked from rpms/rpm a year ago
Clone
94437a
From fe274b8f965582fdf97e6c46f90b9e7c124b0b8b Mon Sep 17 00:00:00 2001
94437a
From: Florian Festi <ffesti@redhat.com>
94437a
Date: Fri, 16 Dec 2022 15:50:12 +0100
94437a
Subject: [PATCH] rpm2archive: Don't print usage on no arguments
94437a
94437a
given as we want to default to reading from stdin and writing to stdout in
94437a
that case.
94437a
---
94437a
 rpm2archive.c | 4 ----
94437a
 1 file changed, 4 deletions(-)
94437a
94437a
diff --git a/rpm2archive.c b/rpm2archive.c
94437a
index 09da8d16b..53f047f58 100644
94437a
--- a/rpm2archive.c
94437a
+++ b/rpm2archive.c
94437a
@@ -241,10 +241,6 @@ int main(int argc, const char *argv[])
94437a
 	    exit(EXIT_FAILURE);
94437a
 	}
94437a
     }
94437a
-    if (argc < 2 || poptGetNextOpt(optCon) == 0) {
94437a
-	poptPrintUsage(optCon, stderr, 0);
94437a
-	exit(EXIT_FAILURE);
94437a
-    }
94437a
 
94437a
     rpmts ts = rpmtsCreate();
94437a
     rpmVSFlags vsflags = 0;
94437a
-- 
94437a
2.38.1
94437a