Source: fritzing Version: 0.9.3b+dfsg-9 Severity: minor Control: clone -1 -2 Control: reassign -2 src:fritzing-parts 0.9.3b-3
fritzing and fritzing-parts currently contain this line:
DFSG_NUM=$(dpkg-parsechangelog --show-field Changes --from ${VERSION} | grep
^${NAME} | head -n 1 | grep -o "${VERSION}.*-" | grep -E -o "dfsg[[:digit:]]*"
| sed 's/dfsg//')
A shorter way to write this is:
DFSG_NUM=$(dpkg-parsechangelog -S Version --from ${VERSION} | sed -n
's/.*dfsg\([[:digit:]]*\).*/\1/p')
https://codesearch.debian.net/search?q=parsechangelog.*%28--show-field%7C-S%29.*Changes&literal=0
In addition you could also make this simplification:
-NAME=$(dpkg-parsechangelog | sed -n 's/^Source: //p')
+NAME=$(dpkg-parsechangelog -S Source)
--
bye,
pabs
https://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part

