Explorar o código

Dpkg::Dist::Files: Change add_file to return $file

Guillem Jover %!s(int64=9) %!d(string=hai) anos
pai
achega
2aa7752b00
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      scripts/Dpkg/Dist/Files.pm

+ 2 - 0
scripts/Dpkg/Dist/Files.pm

@@ -122,6 +122,8 @@ sub add_file {
     $file->{priority} = $priority;
 
     $self->{files}->{$filename} = $file;
+
+    return $file;
 }
 
 sub del_file {