@@ -17,11 +17,9 @@ Signed-off-by: Aníbal Limón <anibal@rzerosystems.com>
Upstream-Status: Inappropriate [OE specific: python3-distro-info is not available]
---
-diff --git a/unattended-upgrade b/unattended-upgrade
-index b72e59e..8ff0c1c 100755
--- a/unattended-upgrade
+++ b/unattended-upgrade
-@@ -89,8 +89,6 @@ import apt
+@@ -78,8 +78,6 @@
import apt_inst
import apt_pkg
@@ -30,7 +28,7 @@ index b72e59e..8ff0c1c 100755
# workaround debian #1076097, it's unclear why we get the warning:
# "DeprecationWarning: This process (pid=3710789) is multi-threaded,
# use of fork() may lead to deadlocks in the child."
-@@ -2436,42 +2434,6 @@ def run(options, # type: Options
+@@ -2704,44 +2702,6 @@
if should_stop():
return UnattendedUpgradesResult(False)
@@ -63,7 +61,9 @@ index b72e59e..8ff0c1c 100755
- - datetime.timedelta(days=1)))
- return UnattendedUpgradesResult(True)
-
-- logging.debug("Running on the development release")
+- if (isinstance(devel, distro_info.DistroRelease)
+- and devel.series == DISTRO_CODENAME):
+- logging.debug("Running on the development release")
- elif "(development branch)" in DISTRO_DESC and not\
- apt_pkg.config.find_b("Unattended-Upgrade::DevRelease", True):
- syslog.syslog(_("Not running on the development release."))
@@ -72,4 +72,4 @@ index b72e59e..8ff0c1c 100755
-
logging.info(_("Starting unattended upgrades script"))
- # check and get lock
+ # check if its configured for install on shutdown, if so, the
similarity index 95%
rename from meta-oe/recipes-devtools/unattended-upgrades/unattended-upgrades_2.13.bb
rename to meta-oe/recipes-devtools/unattended-upgrades/unattended-upgrades_2.14.bb
@@ -9,7 +9,7 @@ SRC_URI = "git://github.com/mvo5/unattended-upgrades.git;protocol=https;branch=m
file://0001-unattended-upgrade-Remove-distro_info-usage-to-check.patch \
"
-SRCREV = "221b1a688ee291fd7e0d116dccb57073b921619a"
+SRCREV = "1cba54a8ee9b7706e09f57937f1de251900a992e"
inherit setuptools3_legacy
- Minimal-steps mode reworked to be greedy, so the first download and install start much sooner - Fix Package-Whitelist being ignored unless the whitelist is strict - New MinBatteryLevel option (default 40%) and MailReport values on-new-change and on-upgrade - Use os-release instead of lsb-release; minimum Python is now 3.8 - Honor APT::Get::Purge; AutoFixInterruptedDpkg now actually runs Refresh the distro_info patch for the reworked development release check. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ...d-upgrade-Remove-distro_info-usage-to-check.patch | 12 ++++++------ ...-upgrades_2.13.bb => unattended-upgrades_2.14.bb} | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) rename meta-oe/recipes-devtools/unattended-upgrades/{unattended-upgrades_2.13.bb => unattended-upgrades_2.14.bb} (95%)