mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-13 19:13:13 +00:00
read_file: replace $versions->{$filename} with $cver
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
parent
b8dc43668b
commit
04cba6c8c1
@ -240,11 +240,11 @@ sub read_file {
|
|||||||
|
|
||||||
# file unchanged?
|
# file unchanged?
|
||||||
if (!$ccinfo->{nocache} &&
|
if (!$ccinfo->{nocache} &&
|
||||||
$inotify && $versions->{$filename} &&
|
$inotify && $cver &&
|
||||||
defined ($ccinfo->{data}) &&
|
defined ($ccinfo->{data}) &&
|
||||||
defined ($ccinfo->{version}) &&
|
defined ($ccinfo->{version}) &&
|
||||||
($ccinfo->{readonce} ||
|
($ccinfo->{readonce} ||
|
||||||
($ccinfo->{version} == $versions->{$filename}))) {
|
($ccinfo->{version} == $cver))) {
|
||||||
|
|
||||||
my $ret;
|
my $ret;
|
||||||
if (!$noclone && ref ($ccinfo->{data})) {
|
if (!$noclone && ref ($ccinfo->{data})) {
|
||||||
|
Loading…
Reference in New Issue
Block a user