[Bug 2071678] Re: Python syntax warnings on installation
Graham Inggs
2071678 at bugs.launchpad.net
Wed Aug 14 12:29:09 UTC 2024
Hi Nathan
The changes look good to me, however:
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building aptdaemon using existing ./aptdaemon_1.1.1+bzr982.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: local changes detected, the modified files are:
aptdaemon-1.1.1+bzr982/aptdaemon/core.py
aptdaemon-1.1.1+bzr982/aptdaemon/progress.py
aptdaemon-1.1.1+bzr982/aptdaemon/worker/aptworker.py
aptdaemon-1.1.1+bzr982/aptdaemon/worker/pkworker.py
dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/aptdaemon_1.1.1+bzr982-0ubuntu45.diff.TjheX_
dpkg-source: info: Hint: make sure the version in debian/changelog matches the unpacked source tree
dpkg-source: info: you can integrate the local changes with dpkg-source --commit
Please run 'dpkg-source --commit' to create a new patch file in
debian/series, add DEP3 patch headers, and attach the debdiff to this
bug.
http://dep.debian.net/deps/dep3/
--
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2071678
Title:
Python syntax warnings on installation
Status in aptdaemon package in Ubuntu:
Confirmed
Bug description:
This concerns python3-aptdaemon 1.1.1+bzr982-0ubuntu44 in Ubuntu
noble.
During installation, I see this:
Setting up python3-aptdaemon (1.1.1+bzr982-0ubuntu44) ...
/usr/lib/python3/dist-packages/aptdaemon/core.py:96: SyntaxWarning: invalid escape sequence '\-'
REGEX_VALID_PACKAGENAME = "^[a-z0-9][a-z0-9\-+.]+(:[a-z0-9]+)?$"
/usr/lib/python3/dist-packages/aptdaemon/core.py:99: SyntaxWarning: invalid escape sequence '\-'
REGEX_VALID_VERSION = "^[0-9][0-9.+\-A-Za-z:~]*$"
/usr/lib/python3/dist-packages/aptdaemon/core.py:101: SyntaxWarning: invalid escape sequence '\-'
REGEX_VALID_RELEASE = "^[a-zA-Z0-9_\-\.]+$"
/usr/lib/python3/dist-packages/aptdaemon/progress.py:57: SyntaxWarning: invalid escape sequence '\['
REGEX_ANSI_ESCAPE_CODE = chr(27) + "\[[;?0-9]*[A-Za-z]"
/usr/lib/python3/dist-packages/aptdaemon/progress.py:667: SyntaxWarning: invalid escape sequence '\s'
match = re.match("\s*\'(.*)\'\s*\'(.*)\'.*", message_raw)
/usr/lib/python3/dist-packages/aptdaemon/progress.py:791: SyntaxWarning: invalid escape sequence '\s'
match = re.match("\s*\'(.*)\'\s*\'(.*)\'.*", status[3])
/usr/lib/python3/dist-packages/aptdaemon/worker/aptworker.py:462: SyntaxWarning: invalid escape sequence '\S'
if re.match("(http|https|ftp)://\S+?:\S+?@\S+", uri):
/usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:89: SyntaxWarning: invalid escape sequence '\d'
MATCH_CVE = "CVE-\d{4}-\d{4}"
/usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:325: SyntaxWarning: invalid escape sequence '\/'
pattern = "^%s$" % filename[1:].replace("/", "\/")
/usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:327: SyntaxWarning: invalid escape sequence '\/'
pattern = "\/%s$" % filename
/usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:350: SyntaxWarning: invalid escape sequence '\/'
pattern = "^%s$" % filename.replace("/", "\/")
/usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:352: SyntaxWarning: invalid escape sequence '\/'
pattern = ".*\/%s$" % filename
/usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:661: SyntaxWarning: invalid escape sequence '\+'
"(?P<date>.+) (?P<offset>[-\+][0-9]+)$",
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/2071678/+subscriptions
More information about the Ubuntu-sponsors
mailing list