metadata: remove redundant fields from package hash

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
Matthias Schiffer
2018-01-06 19:44:52 +01:00
parent f0c702f124
commit 423ec18116
3 changed files with 9 additions and 8 deletions

View File

@@ -373,10 +373,14 @@ sub list {
return 0;
}
# TODO: do_install_package etc. should deal with source packages rather
# than binary packages
sub do_install_package($$) {
my $feed = shift;
my $pkg = shift;
my $path = $pkg->{makefile};
my $path;
$pkg->{src} and $path = $pkg->{src}{makefile};
if($path) {
$path =~ s/\/Makefile$//;