Fix patch so it is buildable again.
This commit is contained in:
parent
9fd4a4e7d8
commit
255fa15993
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265277
1 changed files with 3 additions and 14 deletions
|
@ -1,6 +1,6 @@
|
|||
--- src/pk-lsof.c.orig 2010-10-21 12:50:10.000000000 -0400
|
||||
+++ src/pk-lsof.c 2010-11-27 00:13:21.000000000 -0500
|
||||
@@ -154,7 +154,7 @@ pk_lsof_refresh (PkLsof *lsof)
|
||||
--- src/pk-lsof.c.orig 2010-10-21 18:50:10.000000000 +0200
|
||||
+++ src/pk-lsof.c 2010-11-27 14:39:56.000000000 +0100
|
||||
@@ -154,7 +154,7 @@
|
||||
g_return_val_if_fail (PK_IS_LSOF (lsof), FALSE);
|
||||
|
||||
/* try to find lsof */
|
||||
|
@ -9,14 +9,3 @@
|
|||
ret = g_file_test (lsof_name, G_FILE_TEST_EXISTS);
|
||||
if (!ret) {
|
||||
lsof_name = "/usr/bin/lsof";
|
||||
--- src/pk-lsof.c.orig 2010-01-09 15:57:54.000000000 -0500
|
||||
+++ src/pk-lsof.c 2010-01-09 15:58:15.000000000 -0500
|
||||
@@ -153,7 +153,7 @@ pk_lsof_refresh (PkLsof *lsof)
|
||||
g_return_val_if_fail (PK_IS_LSOF (lsof), FALSE);
|
||||
|
||||
/* run lsof to get all data */
|
||||
- ret = g_spawn_command_line_sync ("/usr/sbin/lsof -Fpfn", &stdout, &stderr, NULL, &error);
|
||||
+ ret = g_spawn_command_line_sync ("%%LOCALBASE%%/sbin/lsof -Fpfn", &stdout, &stderr, NULL, &error);
|
||||
if (!ret) {
|
||||
egg_warning ("failed to get pids: %s", error->message);
|
||||
g_error_free (error);
|
||||
|
|
Loading…
Reference in a new issue