change get command

This commit is contained in:
Marko Oldenburg 2018-11-22 08:49:27 +01:00
parent 185e2313d4
commit 9d9af0eac8

View File

@ -363,7 +363,7 @@ sub Get($$@) {
my $ret = CreateErrorList($hash);
return $ret;
}
elsif ( $cmd eq 'getDistribution' ) {
elsif ( $cmd eq 'distributionInfo' ) {
return "usage: $cmd" if ( @args != 0 );
$hash->{".fhem"}{aptget}{cmd} = 'getDistribution';
@ -371,7 +371,7 @@ sub Get($$@) {
}
else {
my $list = "";
$list .= " getDistribution:noArg"
$list .= " distributionInfo:noArg"
unless ( ReadingsVal( $name, 'os-release_language', 'none' ) eq 'none' );
$list .= " showUpgradeList:noArg"
if ( defined( $hash->{".fhem"}{aptget}{packages} )