[Bug 224413] pkg command will pickup wrong FLAVOR if run within python
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Dec 18 01:12:06 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224413
Bug ID: 224413
Summary: pkg command will pickup wrong FLAVOR if run within
python
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: Individual Port(s)
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: zhoutao at laocius.org
CC: christer.edwards at gmail.com
Flags: maintainer-feedback?(christer.edwards at gmail.com)
CC: christer.edwards at gmail.com
I have python 3.6 installed on FreeBSD 11.1
if I run pkg install sysutils/py-salt, it will install py36-salt.
But if I run the following command
python3.6 -c "import subprocess;subprocess.Popen(['pkg', 'install', '-y',
'sysutils/py-salt'])"
, it will install package py27-salt.
Since I am using salt-stack to mange all my FreeBSD servers, this breaks
everything because every time I do a salt state.highstate, it will revert all
the py36-* packages to py27-* packages.
I don't know the difference if I run the pkg command inside python scripts. Is
there some special environment variable for FLAVORs?
Thanks
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list