removed Provides: and Requires: tags from printouts
authorewt <devnull@localhost>
Thu, 27 Jun 1996 17:19:25 +0000 (17:19 +0000)
committerewt <devnull@localhost>
Thu, 27 Jun 1996 17:19:25 +0000 (17:19 +0000)
CVS patchset: 677
CVS date: 1996/06/27 17:19:25

query.c

diff --git a/query.c b/query.c
index 7cd14f5..60c4a30 100644 (file)
--- a/query.c
+++ b/query.c
@@ -217,31 +217,26 @@ static void printHeader(Header h, int queryFlags, char * queryFormat) {
        }
 
        if (queryFlags & QUERY_FOR_PROVIDES) {
-           printf("Provides    : ");
            if (!getEntry(h, RPMTAG_PROVIDES, &type, 
                 (void **) &providesList, &count) || !count) {
-               puts("(nothing)");
+               puts("(provides nothing)");
            } else {
                for (i = 0; i < count; i++) {
-                   printf("%s ", providesList[i]);
+                   puts(providesList[i]);
                }
                printf("\n");
            }
        }
 
        if (queryFlags & QUERY_FOR_REQUIRES) {
-           printf("Requires    : ");
            if (!getEntry(h, RPMTAG_REQUIRENAME, &type, 
                 (void **) &requiresList, &count) || !count) {
-               puts("(nothing)");
+               puts("(requires nothing)");
            } else {
-               char * indent = "";
-
                strlist = requiresList;
 
                while (count--) {
-                   printf("%s%s\n", indent, *strlist++);
-                   indent = "              ";
+                   puts(*strlist++);
                }
                free(requiresList);
            }