dcavalca / rpms / rpm

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