The following commit has been merged in the master branch:
commit 1de1425e6150c2206777c53a46d4287f62e80c99
Author: James Vega <[email protected]>
Date: Thu Jan 14 21:45:57 2010 -0500
dcmd: Allow capital letters for the section and priority fields.
Closes: #595159
diff --git a/debian/changelog b/debian/changelog
index 2575435..95519e7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,8 @@ devscripts (2.10.62) UNRELEASED; urgency=low
* Devscripts::Versort: Use Dpkg::Version::version_compare instead of
invoking “dpkg --compare-versions”.
* debian/control: Update Vcs-* to point to the new Git repository.
+ * dcmd: Allow capital letters for the section and priority fields. (Closes:
+ #595159)
[ Patrick Schoenfeld ]
* nmudiff: Fix "[nmudiff] please include --tagpending option" by applying the
diff --git a/scripts/dcmd.sh b/scripts/dcmd.sh
index a7bc297..63d56c6 100755
--- a/scripts/dcmd.sh
+++ b/scripts/dcmd.sh
@@ -57,7 +57,7 @@ endswith()
# 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-zA-Z-]+/)?[a-zA-Z1-]+|-) ([a-zA-Z]+|-) )?(.*)$"
maybe_expand()
{
@@ -68,7 +68,7 @@ maybe_expand()
if [ "$(echo "$1" | cut -b1-2)" != "./" ]; then
sedre="\."
fi
- sed -rn "s,$RE,$dir/\5,p" <"$1" | sed "s,^$sedre/,,"
+ sed --regexp-extended -n "s,$RE,$dir/\5,p" <"$1" | sed "s,^$sedre/,,"
fi
}
--
Git repository for devscripts
--
To unsubscribe, send mail to [email protected].