From db2275cb9968fc337bfac14805651d6c78c7213a Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <e.dolstra@tudelft.nl>
Date: Thu, 26 Jan 2006 23:18:26 +0000
Subject: [PATCH] * Oops, the "I" bit in "nix-env -qas" was broken.  Reported
 by Nicolae Vintila.

---
 src/nix-env/main.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc
index 4dc9158e6..b913d408e 100644
--- a/src/nix-env/main.cc
+++ b/src/nix-env/main.cc
@@ -750,7 +750,7 @@ static void opQuery(Globals & globals,
     /* Obtain derivation information from the specified source. */
     UserEnvElems availElems, installedElems;
 
-    if (source == sInstalled || compareVersions) {
+    if (source == sInstalled || compareVersions || printStatus) {
         installedElems = queryInstalled(globals.state, globals.profile);
     }
 
-- 
GitLab