recoginizes files that have intentionally not been installed
authorewt <devnull@localhost>
Fri, 29 Mar 1996 20:50:53 +0000 (20:50 +0000)
committerewt <devnull@localhost>
Fri, 29 Mar 1996 20:50:53 +0000 (20:50 +0000)
CVS patchset: 505
CVS date: 1996/03/29 20:50:53

query.c

diff --git a/query.c b/query.c
index 676f0b5..65e6035 100644 (file)
--- a/query.c
+++ b/query.c
@@ -153,14 +153,16 @@ static void printHeader(Header h, int queryFlags) {
                                if (fileStatesList) {
                                    switch (fileStatesList[i]) {
                                      case RPMFILE_STATE_NORMAL:
-                                       fputs("normal   ", stdout); break;
+                                       fputs("normal        ", stdout); break;
                                      case RPMFILE_STATE_REPLACED:
-                                       fputs("replaced   ", stdout); break;
+                                       fputs("replaced      ", stdout); break;
+                                     case RPMFILE_STATE_NOTINSTALLED:
+                                       fputs("not installed ", stdout); break;
                                      default:
-                                       fputs("unknown    ", stdout);
+                                       fputs("(unknown)     ", stdout);
                                    }
                                } else {
-                                   fputs("(no state) ", stdout);
+                                   fputs(    "(no state)    ", stdout);
                                }
                            }