richardphibel / rpms / rpm

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