pkgsrc/pkgtools/packagekit/patches/patch-ah
jmcneill 43e73f96b4 Import packagekit version 0.4.0. Much work to do.
PackageKit is a system designed to make installing and updating software on
your computer easier. The primary design goal is to unify all the software
graphical tools used in different distributions, and use some of the latest
technology like PolicyKit to make the process suck less.

The actual nuts-and-bolts distro tool (yum, apt, conary, etc) is used by
PackageKit using compiled and scripted helpers. PackageKit isn't meant to
replace these tools, instead providing a common set of abstractions that can
be used by standard GUI and text mode package managers.

PackageKit itself is a system activated daemon called packagekitd. Being
system activated means that it's only being run when the user is using a text
mode or graphical tool, and quits when it's no longer being used. This means
we don't delay the boot sequence or session startup and don't consume memory
when not being used.
2009-01-08 00:21:00 +00:00

32 lines
1 KiB
Text

$NetBSD: patch-ah,v 1.1.1.1 2009/01/08 00:21:00 jmcneill Exp $
--- src/pk-main.c.orig 2008-12-04 08:45:11.000000000 -0500
+++ src/pk-main.c 2009-01-07 08:33:31.000000000 -0500
@@ -178,9 +178,11 @@ main (int argc, char *argv[])
PkSyslog *syslog = NULL;
GError *error = NULL;
GOptionContext *context;
+#ifdef __linux__
const gchar *env_pk_verbose;
const gchar *env_pk_console;
const gchar *env_pk_logging;
+#endif
const GOptionEntry options[] = {
{ "backend", '\0', 0, G_OPTION_ARG_STRING, &backend_name,
@@ -251,6 +253,7 @@ main (int argc, char *argv[])
goto exit_program;
}
+#ifdef __linux__
/* we don't actually need to do this, except it rules out the
* 'it works from the command line but not service activation' bugs */
env_pk_verbose = g_getenv (EGG_VERBOSE);
@@ -260,6 +263,7 @@ main (int argc, char *argv[])
g_setenv (EGG_VERBOSE, env_pk_verbose, FALSE);
g_setenv (EGG_CONSOLE, env_pk_console, FALSE);
g_setenv (EGG_LOGGING, env_pk_logging, FALSE);
+#endif
/* get values from the config file */
conf = pk_conf_new ();