summaryrefslogtreecommitdiff
path: root/pkgtools/packagekit/patches/patch-ah
blob: fa0d630037d775820b50945b3f7752f462c0a9ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$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 ();