summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorfushuai <shuai01.fu@samsung.com>2017-10-12 17:43:34 +0800
committerjingui.ren <jingui.ren@samsung.com>2017-10-19 11:36:18 +0800
commitad8fd29e5f70a316affaca5b36541c2a2171d505 (patch)
treeb380b94180e4a6532dcdc5d2586c89e89f649e2b /Build
parente0a630f2b06e8187845b87b6eeea9e861abec3ad (diff)
downloadbuild-ad8fd29e5f70a316affaca5b36541c2a2171d505.tar.gz
build-ad8fd29e5f70a316affaca5b36541c2a2171d505.tar.bz2
build-ad8fd29e5f70a316affaca5b36541c2a2171d505.zip
solve gbs build issue of rpm package not install (Tizen:2.4 project) and reuse last build environment failed.
Bugs : https://bugs.tizen.org/browse/DEVT-345 Change-Id: Ie98f094039ed9cc776e5c8bd7b323e9662f7892b Signed-off-by: fushuai <shuai01.fu@samsung.com>
Diffstat (limited to 'Build')
-rw-r--r--Build/Rpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/Rpm.pm b/Build/Rpm.pm
index 25a8e9c..d475184 100644
--- a/Build/Rpm.pm
+++ b/Build/Rpm.pm
@@ -1084,7 +1084,7 @@ sub queryinstalled {
$root = '' if !defined($root) || $root eq '/';
local *F;
- my $dochroot = $root ne '' && !$opts{'nochroot'} && !$< && (-x "$root/usr/bin/rpm" || -x "$root/bin/rpm") ? 1 : 0;
+ my $dochroot = $root ne '' && !$opts{'nochroot'} && !$< ? 1 : 0;
my $pid = open(F, '-|');
die("fork: $!\n") unless defined $pid;
if (!$pid) {