diff options
author | Guillem Jover <guillem@debian.org> | 2013-10-12 10:34:15 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-10-14 05:54:21 +0200 |
commit | 0c977fa968be04424ddfd33445b9e4d72348bfaf (patch) | |
tree | 0d82f24c15b9cc55f8b78c9fe453155502ddc783 /dpkg-deb/main.c | |
parent | 50c1cb4d6e8b4c3ee739646f9df05992b806ea5e (diff) | |
download | dpkg-0c977fa968be04424ddfd33445b9e4d72348bfaf.tar.gz |
libdpkg: Add dpkg-based program startup and shutdown functions
These will perform any necessary action when starting and exiting a
dpkg-based program.
Diffstat (limited to 'dpkg-deb/main.c')
-rw-r--r-- | dpkg-deb/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dpkg-deb/main.c b/dpkg-deb/main.c index a01d35833..e5c09b1c7 100644 --- a/dpkg-deb/main.c +++ b/dpkg-deb/main.c @@ -23,7 +23,6 @@ #include <compat.h> #include <sys/types.h> -#include <sys/stat.h> #include <sys/wait.h> #include <assert.h> @@ -257,8 +256,7 @@ int main(int argc, const char *const *argv) { bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); - dpkg_set_progname(BACKEND); - standard_startup(); + dpkg_program_init(BACKEND); myopt(&argv, cmdinfos, printforhelp); if (!cipaction) badusage(_("need an action option")); @@ -270,7 +268,7 @@ int main(int argc, const char *const *argv) { ret = cipaction->action(argv); - standard_shutdown(); + dpkg_program_done(); return ret; } |