-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pkg_deb] Fix multiline fields in changes file (#691)
* fix multiline fields in changes files * multiline is an enum now
- Loading branch information
Showing
3 changed files
with
65 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -249,6 +249,32 @@ def test_changes(self): | |
content[d_start + len(d_expect)].isupper(), | ||
'Description has unexpected characters at end (%s)' % content) | ||
|
||
self.maxDiff = None | ||
expect = '''Format: 1\.8 | ||
Date: Thu Jan 1 \d{2}:00:00 1970 | ||
Source: fizzbuzz | ||
Binary: fizzbuzz | ||
Architecture: all | ||
Version: 4\.5\.6 | ||
Distribution: trusty | ||
Urgency: low | ||
Maintainer: somé[email protected] | ||
Changed-By: somé[email protected] | ||
Description: | ||
fizzbuzz - toto ®, Й, ק ,م, ๗, あ, 叶, 葉, 말, ü and é | ||
Changes: | ||
fizzbuzz \(4\.5\.6\) trusty; urgency=low | ||
Changes are tracked in revision control\. | ||
Files: | ||
[a-f0-9]{32} \d{4} contrib/devel optional fizzbuzz_4\.5\.6_all\.deb | ||
Checksums-Sha1: | ||
[a-f0-9]{40} \d{4} fizzbuzz_4\.5\.6_all\.deb | ||
Checksums-Sha256: | ||
[a-f0-9]{64} \d{4} fizzbuzz_4\.5\.6_all\.deb | ||
''' | ||
|
||
self.assertRegex(content, expect) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |