summaryrefslogtreecommitdiffstats
path: root/patches/ipkg-0.99.163/0001-use-scripts-with-offlineroot.patch
blob: f97c1c9e2d34a8b1f3ac539c78fd38b3a2fd2384 (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
33
34
From: unknown author <unknown.author@example.com>
Date: Tue, 22 Feb 2011 17:48:08 +0100
Subject: [PATCH] use scripts with offlineroot

The ipkg offline root mechanism avoids that the pre/post scripts are
being run. This patch re-enables the scripts; it makes it possible that
scripts can decide themselfs if they want to do something if DESTDIR is
set.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de
---
 pkg.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/pkg.c b/pkg.c
index 64e7994..144e6e1 100644
--- a/pkg.c
+++ b/pkg.c
@@ -1443,12 +1443,6 @@ int pkg_run_script(ipkg_conf_t *conf, pkg_t *pkg,
 	  return 0;
      }
 
-     if (conf->offline_root) {
-	  fprintf(stderr, "(offline root mode: not running %s.%s)\n", pkg->name, script);
-	  free(path);
-	  return 0;
-     }
-
      sprintf_alloc(&cmd, "%s %s", path, args);
      free(path);
 
-- 
1.7.2.3