This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=7fd5756e22177b39c7822ca0672bd6a59f659971

commit 7fd5756e22177b39c7822ca0672bd6a59f659971
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Jan 28 23:23:28 2020 +0100

    Dpkg::Dist::Files: Document the two filename pattern formats
    
    Prompted-by: Felix Lechner <[email protected]>
---
 debian/changelog           | 1 +
 scripts/Dpkg/Dist/Files.pm | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 4f54438ef..28410d175 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -159,6 +159,7 @@ dpkg (1.20.0) UNRELEASED; urgency=medium
       per platform (such as by using fiemap), or the specific ones for the
       requested packages. This also fixes a problematic cast removing the
       constness of a variable.
+    - Dpkg::Dist::Files: Document the two filename pattern formats.
   * Build system:
     - Bump minimal Perl version to 5.24.1.
     - Add a serial versioning to the m4 files.
diff --git a/scripts/Dpkg/Dist/Files.pm b/scripts/Dpkg/Dist/Files.pm
index 8ae5a3251..ac58b98b0 100644
--- a/scripts/Dpkg/Dist/Files.pm
+++ b/scripts/Dpkg/Dist/Files.pm
@@ -55,12 +55,16 @@ sub parse_filename {
     my $file;
 
     if ($fn =~ m/^(([-+:.0-9a-z]+)_([^_]+)_([-\w]+)\.([a-z0-9.]+))$/) {
+        # Artifact using the common <name>_<version>_<arch>.<type> pattern.
         $file->{filename} = $1;
         $file->{package} = $2;
         $file->{version} = $3;
         $file->{arch} = $4;
         $file->{package_type} = $5;
     } elsif ($fn =~ m/^([-+:.,_0-9a-zA-Z~]+)$/) {
+        # Artifact with no common pattern, usually called byhand or raw, as
+        # they might require manual processing on the server side, or custom
+        # actions per file type.
         $file->{filename} = $1;
     } else {
         $file = undef;

-- 
Dpkg.Org's dpkg

Reply via email to