diff options
author | ewt <devnull@localhost> | 1996-03-29 19:39:41 +0000 |
---|---|---|
committer | ewt <devnull@localhost> | 1996-03-29 19:39:41 +0000 |
commit | 29269c7429a9ff2dea3e5981023eca5bf83a0701 (patch) | |
tree | b1f4e5bf9e05e9c10d3c9e21434848b5dc2433a4 /query.c | |
parent | 96e602e3bae05e1fdea172a2396730463fb4accf (diff) | |
download | rpm-29269c7429a9ff2dea3e5981023eca5bf83a0701.tar.gz rpm-29269c7429a9ff2dea3e5981023eca5bf83a0701.tar.bz2 rpm-29269c7429a9ff2dea3e5981023eca5bf83a0701.zip |
refuses to query old format source packages
CVS patchset: 498
CVS date: 1996/03/29 19:39:41
Diffstat (limited to 'query.c')
-rw-r--r-- | query.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -337,12 +337,18 @@ void doQuery(char * prefix, enum querysources source, int queryFlags, close(fd); switch (rc) { case 0: - printHeader(h, queryFlags); - freeHeader(h); + if (!h) { + fprintf(stderr, "old format source packages cannot be " + "queried\n"); + } else { + printHeader(h, queryFlags); + freeHeader(h); + } break; case 1: fprintf(stderr, "%s is not an RPM\n", arg); } + } break; |