42_AptToDate: change cmd command

git-svn-id: https://svn.fhem.de/fhem/trunk@17813 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
CoolTux
2018-11-22 07:51:48 +00:00
parent 431a48f8db
commit a9d6891ae4

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} )