#include <config.h>
#include <dpkg.h>
+#include <dpkg-db.h>
#include <myopt.h>
#include "dpkg-deb.h"
if (ferror(stdout)) werr("stdout");
}
+void do_showinfo(const char* const* argv) {
+ const char *debar, *directory;
+ struct pkginfo *pkg;
+ struct lstitem* fmt = parseformat(showformat);
+
+ if (!fmt)
+ ohshit(_("Error in format"));
+
+ info_prepare(&argv,&debar,&directory,1);
+
+ parsedb(CONTROLFILE, pdb_ignorefiles, &pkg, NULL, NULL);
+ show1package(fmt,pkg);
+}
+
+
void do_info(const char *const *argv) {
const char *debar, *directory;
if (!(debar= *argv++) || *argv) badusage(_("--contents takes exactly one argument"));
extracthalf(debar, 0, "tv", 0);
}
+/* vi: sw=2
+ */