Selaa lähdekoodia

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

Guillem Jover 9 vuotta sitten
vanhempi
commit
2aa7752b00
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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 {