Author: adsb
Date: 2009-06-02 18:25:33 +0000 (Tue, 02 Jun 2009)
New Revision: 1903
Modified:
trunk/debian/changelog
trunk/scripts/dcmd.sh
Log:
dcmd: Parse changes / dsc files containing section or priority entries of
"-". (Closes: #531593)
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2009-06-01 18:02:01 UTC (rev 1902)
+++ trunk/debian/changelog 2009-06-02 18:25:33 UTC (rev 1903)
@@ -25,6 +25,8 @@
+ Apply the "common lead-in text" to the "readonly" check.
+ Remove "\\" from the list of unsafe backslash escapes, as it appears to
work in all shells.
+ * dcmd: Parse changes / dsc files containing section or priority entries of
+ "-". (Closes: #531593)
* licensecheck: Fix an error in a regular expression which led to an
uninitialized value warning and missing version for some GPL headers.
Thanks, Jakub Wilk. (Closes: #531059)
Modified: trunk/scripts/dcmd.sh
===================================================================
--- trunk/scripts/dcmd.sh 2009-06-01 18:02:01 UTC (rev 1902)
+++ trunk/scripts/dcmd.sh 2009-06-02 18:25:33 UTC (rev 1903)
@@ -57,7 +57,7 @@
# Instead of parsing the file completely as the previous Python
# implementation did (using python-debian), let's just select lines
# that look like they might be part of the file list.
-RE="^ [0-9a-f]{32} [0-9]+ (([a-z-]+/)?[a-z1-]+ [a-z]+ )?(.*)$"
+RE="^ [0-9a-f]{32} [0-9]+ ((([a-z-]+/)?[a-z1-]+|-) ([a-z]+|-) )?(.*)$"
maybe_expand()
{
@@ -68,7 +68,7 @@
if [ "$(echo "$1" | cut -b1-2)" != "./" ]; then
sedre="\."
fi
- sed -rn "s,$RE,$dir/\3,p" <"$1" | sed "s,^$sedre/,,"
+ sed -rn "s,$RE,$dir/\5,p" <"$1" | sed "s,^$sedre/,,"
fi
}
--
To unsubscribe, send mail to [email protected].