mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-27 10:37:13 +00:00
42_AptToDate: add new get command getDistribution to fetch distribution info
git-svn-id: https://svn.fhem.de/fhem/trunk@17812 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
64c3a0472d
commit
494ee94877
@ -1,5 +1,7 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- feature: 42_AptToDate: add new get command getDistribution to fetch
|
||||
distribution info
|
||||
- change: 93_DbRep: attribute timeout set for minTimestamp
|
||||
- feature: 73_AutoShuttersControl: change hardLockOut mode code
|
||||
- bugfix: 73_AutoShuttersControl: bug line 623
|
||||
|
@ -35,7 +35,7 @@ package main;
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
my $version = "1.4.0";
|
||||
my $version = "1.4.1";
|
||||
|
||||
sub AptToDate_Initialize($) {
|
||||
|
||||
@ -67,7 +67,7 @@ use strict;
|
||||
use warnings;
|
||||
use POSIX;
|
||||
|
||||
use GPUtils qw(:all)
|
||||
use GPUtils qw(GP_Import)
|
||||
; # wird für den Import der FHEM Funktionen aus der fhem.pl benötigt
|
||||
|
||||
use Data::Dumper; #only for Debugging
|
||||
@ -362,10 +362,17 @@ sub Get($$@) {
|
||||
|
||||
my $ret = CreateErrorList($hash);
|
||||
return $ret;
|
||||
}
|
||||
elsif ( $cmd eq 'getDistribution' ) {
|
||||
return "usage: $cmd" if ( @args != 0 );
|
||||
|
||||
$hash->{".fhem"}{aptget}{cmd} = 'getDistribution';
|
||||
AsynchronousExecuteAptGetCommand($hash);
|
||||
}
|
||||
else {
|
||||
my $list = "";
|
||||
$list .= " getDistribution:noArg"
|
||||
unless ( ReadingsVal( $name, 'os-release_language', 'none' ) eq 'none' );
|
||||
$list .= " showUpgradeList:noArg"
|
||||
if ( defined( $hash->{".fhem"}{aptget}{packages} )
|
||||
and scalar keys %{ $hash->{".fhem"}{aptget}{packages} } > 0 );
|
||||
@ -1134,6 +1141,7 @@ sub ToDay() {
|
||||
<li>showUpdatedList - Liste aller als letztes aktualisierter Pakete, von der alten Version zur neuen Version</li>
|
||||
<li>showWarningList - Liste der letzten Warnings</li>
|
||||
<li>showErrorList - Liste der letzten Fehler</li>
|
||||
<li>getDistribution - fetch new distribution information</li>
|
||||
<br>
|
||||
</ul>
|
||||
<br><br>
|
||||
|
Loading…
x
Reference in New Issue
Block a user