diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-01-06 18:01:25 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-01-13 19:54:44 +0100 |
commit | 504cb913eb5e12ea5e737bdfac96df32240b3c37 (patch) | |
tree | df83abffbc34304c2b6c512a5bf48a67b93a17c5 /scripts/feeds | |
parent | 47f292ff7823e9d844e946d221f5708bf51b15fd (diff) | |
download | upstream-504cb913eb5e12ea5e737bdfac96df32240b3c37.tar.gz upstream-504cb913eb5e12ea5e737bdfac96df32240b3c37.tar.bz2 upstream-504cb913eb5e12ea5e737bdfac96df32240b3c37.zip |
metadata: change pkg->{src} field to hold a reference
We often want to access fields of a source packages through pkg->{src}.
Allow accessing them directly instead of resolving the source hash through
srcpackages.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'scripts/feeds')
-rwxr-xr-x | scripts/feeds | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/feeds b/scripts/feeds index 0a7e9317f8..4ac6685b4d 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -494,7 +494,7 @@ sub install_package { warn "WARNING: Package '$name' is not available in feed $feed->[1].\n"; return 0; }; - my $src = $pkg->{src}; + my $src = $pkg->{src}{name}; my $type = $feed->[0]; $src or $src = $name; @@ -663,7 +663,7 @@ sub uninstall { warn "WARNING: $name not installed\n"; next; }; - $pkg->{src} and $name = $pkg->{src}; + $pkg->{src} and $name = $pkg->{src}{name}; warn "Uninstalling package '$name'\n"; system("rm -f ./package/feeds/*/$name"); $uninstall = 1; |