main.c
changeset 74 f23a93d41f32
parent 73 0ff316e24339
child 75 93278d8ec39c
     1.1 --- a/main.c	Mon Nov 05 22:54:33 2007 -0500
     1.2 +++ b/main.c	Wed Nov 07 00:33:56 2007 -0500
     1.3 @@ -291,6 +291,14 @@
     1.4  	return 0;
     1.5  }
     1.6  
     1.7 +static int
     1.8 +command_dump_rpm(int argc, const char *argv[])
     1.9 +{
    1.10 +	razor_rpm_dump(argv[0]);
    1.11 +
    1.12 +	return 0;
    1.13 +}
    1.14 +
    1.15  static struct {
    1.16  	const char *name;
    1.17  	const char *description;
    1.18 @@ -310,7 +318,8 @@
    1.19  	{ "import-rpmdb", "import the system rpm database", command_import_rpmdb },
    1.20  	{ "validate", "validate a package set", command_validate },
    1.21  	{ "update", "update all or specified packages", command_update },
    1.22 -	{ "diff", "show diff between two package sets", command_diff }
    1.23 +	{ "diff", "show diff between two package sets", command_diff },
    1.24 +	{ "dump", "dump rpm file contents", command_dump_rpm }
    1.25  };
    1.26  
    1.27  static int