michal-grzedzicki / rpms / rpm

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