Summary: | qapt-batch doesn't honour proxy settings | ||
---|---|---|---|
Product: | [Unmaintained] muon | Reporter: | Markus Hansmair <kde.5.mhr443> |
Component: | qaptworker | Assignee: | Jonathan Thomas <echidnaman> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 1.1.85, 1.1.4 | |
Sentry Crash Report: |
Description
Markus Hansmair
2011-06-09 12:10:14 UTC
Thinking about it, this is probably a case of DBus spawning the qapt-worker process in a non-shell environment where the env variables aren't being set. I know I had to manually set language variables for localization, so it may be the case that I'll have to do the same thing for proxies. In the meantime, putting a config entry like this in /etc/apt.conf (or in a file in /etc/apt.conf.d/ should work around the issue by setting the proxy on the application level for apt: Acquire { http { Proxy "http://foouser:barpassword@wwwcache.rdg.ac.uk:8080/"; No-Cache "false"; Max-Age "86400"; No-Store "false"; }; }; Git commit 9943c063f5dc2a53252c8700c704b136a852bf4e by Jonathan Thomas. Committed on 19/06/2011 at 18:40. Pushed by jmthomas into branch '1.1'. Send the value of the http_proxy env var to the worker, since it normally runs in a shell-less environment with no env vars defined. BUG:275276 FIXED-IN: 1.1.85, 1.1.4 Conflicts: src/backend.cpp M +17 -2 src/backend.cpp M +3 -0 src/worker/org.kubuntu.qaptworker.xml M +5 -0 src/worker/worker.cpp M +1 -0 src/worker/worker.h http://commits.kde.org/libqapt/9943c063f5dc2a53252c8700c704b136a852bf4e Git commit e29c463dcec3ac0a0b44c5e9e62ac58814de52ff by Jonathan Thomas. Committed on 19/06/2011 at 18:40. Pushed by jmthomas into branch 'master'. Send the value of the http_proxy env var to the worker, since it normally runs in a shell-less environment with no env vars defined. BUG:275276 FIXED-IN: 1.1.85, 1.1.4 M +21 -4 src/backend.cpp M +3 -0 src/worker/org.kubuntu.qaptworker.xml M +5 -0 src/worker/worker.cpp M +1 -0 src/worker/worker.h http://commits.kde.org/libqapt/e29c463dcec3ac0a0b44c5e9e62ac58814de52ff That should do it. :) I tested with a fake proxy "localhost:8888" to see if the qapt-worker would pick up on it. It seemed to work, since I got DNS resolution errors as expected. |