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

nthykier pushed a commit to branch master
in repository lintian.

commit ca668a74db626032929b1c884ff7aee30515f084
Author: Niels Thykier <[email protected]>
Date:   Mon Mar 23 20:17:36 2015 +0100

    L::R::ResMan: Only keep the last extension of the resources
    
    Else we end up with resources like:
    
      ...
      <hashX>.d-script-depends-on-all-virtual-facility.svg
      ...
      <hashY>.d-outside-usr-lib.svg
      ...
    
    which looks "really silly(tm)".
    
    Signed-off-by: Niels Thykier <[email protected]>
---
 lib/Lintian/Reporting/ResourceManager.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Lintian/Reporting/ResourceManager.pm 
b/lib/Lintian/Reporting/ResourceManager.pm
index 22b6f2b..2d02aba 100644
--- a/lib/Lintian/Reporting/ResourceManager.pm
+++ b/lib/Lintian/Reporting/ResourceManager.pm
@@ -98,7 +98,7 @@ sub install_resource {
 
     croak("Resource name ${basename} already in use")
       if defined($self->{'_resource_cache'}{$basename});
-    if ($basename =~ m/^[^\.]+(\..+)$/xsm) {
+    if ($basename =~ m/^.+(\.[^\.]+)$/xsm) {
         my $ext = $1;
         $install_name .= $ext;
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/lintian/lintian.git


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: https://lists.debian.org/[email protected]

Reply via email to