Your message dated Sat, 24 Jan 2026 11:36:35 +0000
with message-id <[email protected]>
and subject line Bug#1125393: fixed in unattended-upgrades 2.12+nmu1
has caused the Debian Bug report #1125393,
regarding unattended-upgrades: FTBFS: F824 `global logged_msgs` is unused: name 
is never assigned in scope
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1125393: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1125393
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: unattended-upgrades
Version: 2.12
Severity: serious
Tags: ftbfs

With python3-flake8 7.3.0-1, unattended-upgrades fails to build:

______________________ TestFlake8Clean.test_flake8_clean _______________________

self = <test.test_flake8.TestFlake8Clean testMethod=test_flake8_clean>

    def test_flake8_clean(self):
        top_src_dir = os.path.join(os.path.dirname(__file__), "..")
        targets = [
            top_src_dir,
            os.path.join(top_src_dir, "unattended-upgrade"),
            os.path.join(top_src_dir, "unattended-upgrade-shutdown"),
        ]
>       subprocess.check_call(
            [
                "flake8",
                # use max-line-length=88 for upcoming "black" compatibility
                "--max-line-length=88",
                # E402 ignored because we need to import/config apt_pkg before
                #      importing unattended_upgrade
                # W503 ignored because some lines with binary operators are long
                "--ignore=E402,W503",
            ]
            + targets
        )

/build/reproducible-path/unattended-upgrades-2.12/test/test_flake8.py:16:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['flake8', '--max-line-length=88', '--ignore=E402,W503', 
'/build/reproducible-path/unattended-upgrades-2.12/test/..',...test/../unattended-upgrade',
 
'/build/reproducible-path/unattended-upgrades-2.12/test/../unattended-upgrade-shutdown'],)
kwargs = {}, retcode = 1
cmd = ['flake8', '--max-line-length=88', '--ignore=E402,W503', 
'/build/reproducible-path/unattended-upgrades-2.12/test/..', 
...2/test/../unattended-upgrade', 
'/build/reproducible-path/unattended-upgrades-2.12/test/../unattended-upgrade-shutdown']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['flake8', 
'--max-line-length=88', '--ignore=E402,W503', 
'/build/reproducible-path/unattended-upgrades-2.12/test/..', 
'/build/reproducible-path/unattended-upgrades-2.12/test/../unattended-upgrade', 
'/build/reproducible-path/unattended-upgrades-2.12/test/../unattended-upgrade-shutdown']'
 returned non-zero exit status 1.

/usr/lib/python3.13/subprocess.py:419: CalledProcessError
----------------------------- Captured stdout call -----------------------------
/build/reproducible-path/unattended-upgrades-2.12/test/../unattended-upgrade:878:5:
 F824 `global logged_msgs` is unused: name is never assigned in scope
/build/reproducible-path/unattended-upgrades-2.12/test/../unattended_upgrade.py:878:5:
 F824 `global logged_msgs` is unused: name is never assigned in scope


I generally think that flake8 and other similar linters should be run in 
CI jobs but not at package build time; there's no need for them to 
prevent the package from building.  But please at least fix this failure 
(which is just a matter of removing the "global logged_msgs" line 
pointed to here) so that the new python-flake8 can migrate to testing.

Thanks,

-- 
Colin Watson (he/him)                              [[email protected]]

--- End Message ---
--- Begin Message ---
Source: unattended-upgrades
Source-Version: 2.12+nmu1
Done: Colin Watson <[email protected]>

We believe that the bug you reported is fixed in the latest version of
unattended-upgrades, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <[email protected]> (supplier of updated unattended-upgrades 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 22 Jan 2026 11:03:52 +0000
Source: unattended-upgrades
Architecture: source
Version: 2.12+nmu1
Distribution: unstable
Urgency: medium
Maintainer: Michael Vogt <[email protected]>
Changed-By: Colin Watson <[email protected]>
Closes: 1125393
Changes:
 unattended-upgrades (2.12+nmu1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Remove unnecessary `global` statement, fixing flake8 test (closes:
     #1125393).
Checksums-Sha1:
 fc204252d633c9756b8a8ad2d97078661b004e71 2007 unattended-upgrades_2.12+nmu1.dsc
 41ba1743bfcec561c7bdf2c966f299fa3db7959b 132312 
unattended-upgrades_2.12+nmu1.tar.xz
Checksums-Sha256:
 005eda4d02002c78b99249de63906f6f2586e63f6e13d1fca733445a446c0a98 2007 
unattended-upgrades_2.12+nmu1.dsc
 4b202fc641768707edd7456171397f4720578d7f240cba7cf630fc176211aba7 132312 
unattended-upgrades_2.12+nmu1.tar.xz
Files:
 41d3f407fe6f48f6e09996385540cbab 2007 admin optional 
unattended-upgrades_2.12+nmu1.dsc
 d8257af7802dc80aa326ba728a2e1634 132312 admin optional 
unattended-upgrades_2.12+nmu1.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmlyBEAACgkQOTWH2X2G
UAvucA/+OmrOk9gJvsQVcGAvL3N3qUGM5zvt154Uo5iKKpNWp9/N2TnjVf0XwXHK
xMs16aCoTlyPrSTthTZmLGblcVbL18d6KZ2xYJadcV2OfjHX4a/eLxVWhzf1mZOr
I5UiTopmqMeduse57kzvVsYBT9NnudLkU1OQbBpbDwvUPakPasZ0vtx2ZhBlniqH
QCQb++d5gJqLIXezDGZqDf+ovvFOydSsl1MfNI3+9485+FaiXULfOVc841PM/ef/
Cpdgeymu7/VED+26HRQKKaRUHwi3MZHkpb5n3XbZcYB0Ev0mTSEWAo1kXRElukzE
orKhtOgCKnHz1dGv3AQXwlUF5ZadIT6Mu8FsQ/GlJtZZCgcxVX5nCCQK27z4Eure
2D9MSh9WrQy0CKBPxhTPNSWKZsFihp55kObsMP4SzkdrRi8KFginRjQWLqVB0tfB
MMAeekUGRENuOouoc7wdqeS3e1j2A+UCXt/7jka5qN5vxDv37GoNdAGuy5ijsB5r
AyHKrIC+4kbFGvkUm8gBcbRKAF+6xgBjqVHpwEDtJoMMrWJNWQK5rglAfRNQwtrp
xSF+6y0eRViEx/O4VnrC+sOA7ft4jy6QoaCau1IIAOHmt7dYp0eJbWJbqR7JkbZt
xUIqtCT1i2LqcYwsA+AH878iDhm1YbjCbkWh/s4P8tUYK1jxa5w=
=ByNj
-----END PGP SIGNATURE-----

Attachment: pgpTOoT5qD9iU.pgp
Description: PGP signature


--- End Message ---

Reply via email to