src/main.c
changeset 320 53e1185e2366
parent 317 019a53b65271
child 321 6f804141872c
     1.1 --- a/src/main.c	Tue Jul 08 22:57:34 2008 -0400
     1.2 +++ b/src/main.c	Tue Jan 06 14:06:00 2009 +0000
     1.3 @@ -431,6 +431,7 @@
     1.4  	return 0;
     1.5  }
     1.6  
     1.7 +#if HAVE_RPMLIB
     1.8  static int
     1.9  command_import_rpmdb(int argc, const char *argv[])
    1.10  {
    1.11 @@ -449,6 +450,7 @@
    1.12  
    1.13  	return razor_root_commit(root);
    1.14  }
    1.15 +#endif
    1.16  
    1.17  static int
    1.18  mark_packages_for_update(struct razor_transaction *trans,
    1.19 @@ -1001,7 +1003,9 @@
    1.20  	{ "what-requires", "list the packages that have the given requires", command_what_requires },
    1.21  	{ "what-provides", "list the packages that have the given provides", command_what_provides },
    1.22  	{ "import-yum", "import yum metadata files", command_import_yum },
    1.23 +#if HAVE_RPMLIB
    1.24  	{ "import-rpmdb", "import the system rpm database", command_import_rpmdb },
    1.25 +#endif
    1.26  	{ "import-rpms", "import rpms from the given directory", command_import_rpms },
    1.27  	{ "update", "update all or specified packages", command_update },
    1.28  	{ "remove", "remove specified packages", command_remove },