Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2017 01:12:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 224413] pkg command will pickup wrong FLAVOR if run within python
Message-ID:  <bug-224413-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224413

            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@FreeBSD.org
          Reporter: zhoutao@laocius.org
                CC: christer.edwards@gmail.com
             Flags: maintainer-feedback?(christer.edwards@gmail.com)
                CC: christer.edwards@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 a=
ll
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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224413-13>