sleep after utils.run() (related #1963114)
This commit is contained in:
parent
b7addb99c0
commit
9c9af2ba19
@ -1,5 +1,5 @@
|
|||||||
diff --git a/config_usb_printer.py b/config_usb_printer.py
|
diff --git a/config_usb_printer.py b/config_usb_printer.py
|
||||||
index 946a2d4..fdab79d 100755
|
index 946a2d4..8db097e 100755
|
||||||
--- a/config_usb_printer.py
|
--- a/config_usb_printer.py
|
||||||
+++ b/config_usb_printer.py
|
+++ b/config_usb_printer.py
|
||||||
@@ -28,6 +28,7 @@ __doc__ = "Udev invokes this tool. Tool detects the plugin, Smart Install (C/DVD
|
@@ -28,6 +28,7 @@ __doc__ = "Udev invokes this tool. Tool detects the plugin, Smart Install (C/DVD
|
||||||
@ -10,14 +10,15 @@ index 946a2d4..fdab79d 100755
|
|||||||
|
|
||||||
# Local
|
# Local
|
||||||
from base.g import *
|
from base.g import *
|
||||||
@@ -181,8 +182,9 @@ try:
|
@@ -181,9 +182,10 @@ try:
|
||||||
# ******************************* RUNNING FIRMWARE DOWNLOAD TO DEVICE FOR SUPPORTED PRINTER'S
|
# ******************************* RUNNING FIRMWARE DOWNLOAD TO DEVICE FOR SUPPORTED PRINTER'S
|
||||||
fw_download_req = mq.get('fw-download', False)
|
fw_download_req = mq.get('fw-download', False)
|
||||||
if fw_download_req:
|
if fw_download_req:
|
||||||
- fw_cmd = "hp-firmware -y3 -s %s"%param
|
- fw_cmd = "hp-firmware -y3 -s %s"%param
|
||||||
+ fw_cmd = "hp-firmware -n -y3 -s %s"%param
|
+ fw_cmd = "hp-firmware -n -y3 -s %s"%param
|
||||||
log.info(fw_cmd)
|
log.info(fw_cmd)
|
||||||
+ time.sleep(5)
|
|
||||||
fw_sts, fw_out = utils.run(fw_cmd)
|
fw_sts, fw_out = utils.run(fw_cmd)
|
||||||
|
+ time.sleep(5)
|
||||||
if fw_sts == 0:
|
if fw_sts == 0:
|
||||||
log.debug("Firmware downloaded to %s "%device_uri)
|
log.debug("Firmware downloaded to %s "%device_uri)
|
||||||
|
else:
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
Summary: HP Linux Imaging and Printing Project
|
Summary: HP Linux Imaging and Printing Project
|
||||||
Name: hplip
|
Name: hplip
|
||||||
Version: 3.21.2
|
Version: 3.21.2
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
License: GPLv2+ and MIT and BSD and IJG and Public Domain and GPLv2+ with exceptions and ISC
|
License: GPLv2+ and MIT and BSD and IJG and Public Domain and GPLv2+ with exceptions and ISC
|
||||||
|
|
||||||
Url: https://developers.hp.com/hp-linux-imaging-and-printing
|
Url: https://developers.hp.com/hp-linux-imaging-and-printing
|
||||||
@ -836,6 +836,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
|
|||||||
%config(noreplace) %{_sysconfdir}/sane.d/dll.d/hpaio
|
%config(noreplace) %{_sysconfdir}/sane.d/dll.d/hpaio
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 28 2021 Zdenek Dohnal <zdohnal@redhat.com> - 3.21.2-7
|
||||||
|
- sleep after utils.run() (related #1963114)
|
||||||
|
|
||||||
* Fri Jun 11 2021 Zdenek Dohnal <zdohnal@redhat.com> - 3.21.2-6
|
* Fri Jun 11 2021 Zdenek Dohnal <zdohnal@redhat.com> - 3.21.2-6
|
||||||
- 1963114 - patch for hplip firmware load timeout fix
|
- 1963114 - patch for hplip firmware load timeout fix
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user