Commit 0e58ca02 authored by Cyril Brulebois's avatar Cyril Brulebois

Fix Built-Using generation.

Let's build the “source (= version)” mapping correctly, which means
taking into account a possible version in the Source field. Otherwise,
take the Source field and the binary version. If there's no Source
field, take the binary name and version.

Otherwise, we might be getting a REJECT from ftp-master for unknown
packages in Built-Using.
parent 94ea50c1
......@@ -369,9 +369,14 @@ endif
source=`dpkg-deb --info $$udeb | sed -n 's/^ Source: //p'` ; \
if [ -z "$$source" ]; then \
source=`dpkg-deb --info $$udeb | awk '/ Package: / { print $$2 }'` ; \
source_version="$$source (= $$version)" ; \
elif echo "$$source" | grep -qs '(.*)'; then \
source_version=`echo $$source|sed 's/(/(= /'`; \
else \
source_version="$$source (= $$version)" ; \
fi ; \
echo " $$usedsize B - $$usedblocks blocks - $$usedcount files from $$pkg (version $$version)" >>$(TEMP)/diskusage.txt;\
echo "$$source (= $$version)" >>$(TEMP)/built-using.txt;\
echo "$$source_version" >>$(TEMP)/built-using.txt;\
oldsize=$$newsize ; \
oldblocks=$$newblocks ; \
oldcount=$$newcount ; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment