--root should work with --initdb
authorewt <devnull@localhost>
Thu, 31 Oct 1996 21:06:20 +0000 (21:06 +0000)
committerewt <devnull@localhost>
Thu, 31 Oct 1996 21:06:20 +0000 (21:06 +0000)
CVS patchset: 1140
CVS date: 1996/10/31 21:06:20

rpm.c

diff --git a/rpm.c b/rpm.c
index b9837a7..604602e 100755 (executable)
--- a/rpm.c
+++ b/rpm.c
@@ -830,7 +830,7 @@ int main(int argc, char ** argv) {
                 "uninstallation, and building"));
 
     if (bigMode != MODE_INSTALL && bigMode != MODE_UNINSTALL && 
-       bigMode != MODE_QUERY   && bigMode != MODE_VERIFY    &&                         bigMode != MODE_REBUILDDB && rootdir[1])
+       bigMode != MODE_QUERY   && bigMode != MODE_VERIFY    &&                         bigMode != MODE_REBUILDDB && bigMode != MODE_INITDB && rootdir[1])
        argerror(_("--root (-r) may only be specified during "
                 "installation, uninstallation, querying, and "
                 "database rebuilds"));