summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2023-06-13 17:24:01 +0900
committerbiao716.wang <biao716.wang@samsung.com>2023-06-13 17:24:08 +0900
commita2321ff65bc65d8eddce880f2acd2a536443bf9a (patch)
treed755962b71698a40c9c5edc98fc919d4e8b29ebd
parentfcffb06e8131c95803a6729d54f0eb5e293d02eb (diff)
downloadbuild-a2321ff65bc65d8eddce880f2acd2a536443bf9a.tar.gz
build-a2321ff65bc65d8eddce880f2acd2a536443bf9a.tar.bz2
build-a2321ff65bc65d8eddce880f2acd2a536443bf9a.zip
fix gbs build error
https://bugs.tizen.org/browse/DEVT-440 This build error happens in such senario: 1. when there exist two or more same rpm packages with different version, And this package don't depend on other pcakges. So During parsing the cache file .srcfiles.cache, according to the rule of expanddeps file, If there is no "R:" section for this package, it will not compare the version. the releated variable will always save the first package info. This error is caused by: https://review.tizen.org/gerrit/gitweb?p=tools/build.git;a=commit;h=bb2a3cc363850d2751058d34c90d5fe00bc80cbc Change-Id: I2ecdd621bc0350278158fe92dc715f370aba875f Signed-off-by: biao716.wang <biao716.wang@samsung.com>
-rwxr-xr-xexpanddeps2
1 files changed, 1 insertions, 1 deletions
diff --git a/expanddeps b/expanddeps
index c9466bf..c98c3d7 100755
--- a/expanddeps
+++ b/expanddeps
@@ -246,7 +246,7 @@ while(<F>) {
next unless ($r);
my ($i, $newid) = ($1, $2);
undef $i unless !$ids{$i} || $verscmp->($ids{$i}, $newid) < 0;
- undef $i unless defined($pkgF) && defined($pkgP) && defined($pkgR);
+ undef $i unless defined($pkgF) && defined($pkgP);
if (defined $i) {
$i =~ /^(.*)\.([^\.]+)$/ or die;
push @{$packs_arch{$2}}, $1;