Comments (3)
Hi Dustin!
Are you running the deb-pkg-tools
program or are you using the deb_pkg_tools.*
Python modules? Either way, enabling verbose logging should help to determine why sudo
is being run. How you do that depends on the answer to my first question:
-
If you're running the
deb-pkg-tools
program you can use the-v
option to enable verbose logging. -
If you're using the
deb_pkg_tools.*
Python modules the easiest way to enable verbose logging is to run the following Python code before the build starts:import coloredlogs, logging coloredlogs.install(level=logging.DEBUG)
Since I don't know which part(s) of deb-pkg-tools you're using, I need you to tell me which command uses sudo
. Then we can see how to make that invocation of sudo
optional so you can disable it.
By the way, just curious: Did you know you can enable password-less sudo for specific commands? I'm not sure what your intended build environment is (local computer, continuous integration environment, build server, etc.) but it's always good to know about all available options when automating builds. This is not to say that making sudo
usage in deb-pkg-tools is not useful as well.
from python-deb-pkg-tools.
Yeah, I'm well aware of that. Thanks for teaching me about coloredlogs, though.
It's just a copy:
2014-10-17 21:14:14 dustinsilver deb_pkg_tools.package[67358] INFO Copying files (/private/var/folders/qk/t5991kt11cb2y6qgmzrzm_g00000gp/T/tmp17KDLy/package/op-adam-342) to temporary directory (/var/folders/qk/t5991kt11cb2y6qgmzrzm_g00000gp/T/tmpjxk_A3) ..
Password:
from python-deb-pkg-tools.
The output you quoted is an INFO
message. I was hoping your output would quote a DEBUG
line saying "Executing external command: ...". When you've enabled verbose logging that should be the last line you see before you are asked for your sudo
password (unless I'm confused).
I looked through the deb_pkg_tools.*
modules, especially deb_pkg_tools.package
, but the only remaining relevant references to sudo
I can find are in deb_pkg_tools.repo
and it sounds like you're just building a *.deb
package so you shouldn't be running into that. Those sudo
invocations are also the ones controlled by the $DPT_SUDO
environment variable you introduced.
from python-deb-pkg-tools.
Related Issues (14)
- Improve README with example usage HOT 2
- Incomplete Dependency Parsing HOT 3
- Get rid of as much dependencies as possible and replace some existing dependencies with alternatives which may be better HOT 2
- Packages file doesn't provide path to archive
- Drop python 2.
- Using gpgme instead of gpg CLI.
- from deb_pkg_tools. must be eliminated, instead relative imports should be used.
- Add a flag that allows things in /etc/ directory to NOT be treated as conffiles HOT 1
- licensing question HOT 7
- Decoding error HOT 1
- manipulating repository metadata
- Add support for "serialization" of deps to native Python objects HOT 1
- Error when parsing deps HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-deb-pkg-tools.