summaryrefslogtreecommitdiff
path: root/scripts/t/Dpkg_Dist_Files.t
AgeCommit message (Collapse)AuthorFilesLines
2018-09-18Dpkg::Dist::Files: Add support for file attributesGuillem Jover1-9/+22
This will make it possible to track key/value attributes for each file, so that we can track interesting information and pass it to the various programs parsing the debian/files file.
2018-01-16test: Infer automatically the unit test data directoryGuillem Jover1-1/+1
We can easily know the name of the calling unit test, and can thus infer the pathname for the data directory, instead of having to duplicate the name, and potentially ending with it being out of sync.
2017-05-06doc: Spelling fixesJosh Soref1-1/+1
Signed-off-by: Guillem Jover <guillem@debian.org>
2017-01-25test: Refactor unit test data path into test_get_data_path()Guillem Jover1-2/+2
2016-11-03Dpkg::Dist::Files: Add new load_dir methodGuillem Jover1-1/+15
This method scans all fragment files inside a directory and loads each of them.
2015-12-19scripts/t: Improve test coverageGuillem Jover1-1/+3
2015-07-29Dpkg::Dist::Files: Allow colons (:) in added filenamesGuillem Jover1-16/+26
Regression introduced in commit ab15fd24dd1a8207ab1463410338f24283989f7c. Packages can contain colons in their filenames if the upstream version contains colons. Reported-by: Jakub Wilk <jwilk@debian.org>
2015-05-18Dpkg::Dist::Files: Allow ~ in added filenamesGuillem Jover1-1/+28
When we are constructing a .changes file we add the source artifacts to the distribution manually, before loading the distribution list from debian/files. We should allow ~ in the filename as that's a valid character in a version number. Regression introduced in commit ab15fd24dd1a8207ab1463410338f24283989f7c. Reported-by: Niels Thykier <niels@thykier.net>
2015-05-18Dpkg::Dist::Files: Add new filter() methodGuillem Jover1-1/+32
2015-05-09Dpkg::Dist::Files: Parse filename on add_file() to initialize files valuesGuillem Jover1-1/+15
2015-05-09Dpkg::Dist::Files: Always sort the files list on outputGuillem Jover1-8/+10
This guarantees the debian/files and anything parsing it via this module get reproducible results regardless of things such as parallel builds. Reported-by: Jérémy Bobbio <lunar@debian.org>
2014-04-26Dpkg::Dist:Files: Add test cases for get_file()Guillem Jover1-3/+11
2014-04-21Dpkg::Dist::Files: New perl moduleGuillem Jover1-0/+95