Fix up logic again for udebs without findable source
This commit is contained in:
parent
4b512541d8
commit
9d50fdb6f1
|
@ -65,6 +65,7 @@ if [ $source = "yes" ] ; then
|
||||||
/^Package:/ {
|
/^Package:/ {
|
||||||
srcname=$2
|
srcname=$2
|
||||||
srcs_done++
|
srcs_done++
|
||||||
|
num_sources = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
/^Binary:/ {
|
/^Binary:/ {
|
||||||
|
@ -122,19 +123,20 @@ if [ $source = "yes" ] ; then
|
||||||
pkg=fields[3]
|
pkg=fields[3]
|
||||||
pkgsize=fields[4]
|
pkgsize=fields[4]
|
||||||
srcpkg=bin2src[pkg]
|
srcpkg=bin2src[pkg]
|
||||||
|
built_using=fields[5]
|
||||||
|
if ("" != built_using) {
|
||||||
|
num_sources = split(built_using, sources, ",")
|
||||||
|
}
|
||||||
if ("" == srcpkg) {
|
if ("" == srcpkg) {
|
||||||
if ("main-installer" == component) {
|
if ("main-installer" == component) {
|
||||||
printf("# Ignoring source for udeb %s\n", pkg)
|
printf("# Ignoring source for udeb %s\n", pkg)
|
||||||
} else {
|
} else {
|
||||||
printf("# Source for pkg %s is UNKNOWN!\n", pkg)
|
printf("# Source for pkg %s is UNKNOWN!\n", pkg)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
sources[++num_sources] = srcpkg
|
||||||
}
|
}
|
||||||
built_using=fields[5]
|
if (num_sources) {
|
||||||
if ("" != built_using) {
|
|
||||||
num_sources = split(built_using,sources,",")
|
|
||||||
}
|
|
||||||
num_sources++
|
|
||||||
sources[num_sources] = srcpkg
|
|
||||||
for(i = 1; i <= num_sources; i++) {
|
for(i = 1; i <= num_sources; i++) {
|
||||||
source = sources[i]
|
source = sources[i]
|
||||||
if (!included[source]) {
|
if (!included[source]) {
|
||||||
|
@ -156,6 +158,7 @@ if [ $source = "yes" ] ; then
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (size[source] <= max_size) {
|
if (size[source] <= max_size) {
|
||||||
printf("%d:%s\n", FNR, $0)
|
printf("%d:%s\n", FNR, $0)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue