This patch addresses the syntax errors.
In the process of fixing them, the procedure in pkworker.py
--->
for filename in values:
if filename.startswith("/"):
pattern = "^%s$" % filename[1:].replace("/", "\/")
else:
pattern = "\\/%s$" % filename
filenames_regex.append(pattern)
cmd = ["/usr/bin/apt-file", "--regexp", "--non-interactive",
"--package-only", "find", "|".join(filenames_regex)]
<---
confuses me.
1. /usr/bin/apt-file does not have a --non-interactive flag in 24.10.
2. The slash "/" is not a meta-character in regular expressions, so why
is that snippet replacing it with "\/"? Note that
--->
% apt-file --regexp find '\/usr\/bin\/mv'
% apt-file --regexp find '/usr/bin/mv'
canna-utils: /usr/bin/mvdic
coreutils: /usr/bin/mv
libwww-mediawiki-client-perl: /usr/bin/mvs
samba: /usr/bin/mvxattr
<---
Anyway, I'm not touching that, just fixing the syntax errors.
** Patch added: "invalid-escapes.patch"
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/2071678/+attachment/5804016/+files/invalid-escapes.patch
** Changed in: aptdaemon (Ubuntu)
Assignee: (unassigned) => Nathan Teodosio (nteodosio)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2071678
Title:
Python syntax warnings on installation
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/2071678/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs