From f2d3a2c60d4d382fa04076b642500abacaf46083 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 20 Jan 2008 09:50:41 +0100 Subject: [PATCH] Move loadfilters to dpkg's main function --- lib/dpkg.h | 1 - src/main.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dpkg.h b/lib/dpkg.h index f1e0c41e..ff3ac9ac 100644 --- a/lib/dpkg.h +++ b/lib/dpkg.h @@ -181,7 +181,6 @@ extern const char printforhelp[]; umask(022); /* Make sure all our status databases are readable. */\ if (loadcfg)\ loadcfgfile(prog, cmdinfos);\ - loadfilters();\ myopt(argv,cmdinfos);\ } while (0) diff --git a/src/main.c b/src/main.c index 7fadab9f..b2fbc4de 100644 --- a/src/main.c +++ b/src/main.c @@ -626,6 +626,8 @@ int main(int argc, const char *const *argv) { standard_startup(&ejbuf, argc, &argv, DPKG, 1, cmdinfos); if (!cipaction) badusage(_("need an action option")); + loadfilters(); + setvbuf(stdout,0,_IONBF,0); filesdbinit(); -- 2.39.5