Explorar el Código

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

Guillem Jover hace 10 años
padre
commit
2aa7752b00
Se han modificado 1 ficheros con 2 adiciones y 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;
     $file->{priority} = $priority;
 
 
     $self->{files}->{$filename} = $file;
     $self->{files}->{$filename} = $file;
+
+    return $file;
 }
 }
 
 
 sub del_file {
 sub del_file {