Red Hat Bugzilla – Bug 862882
/usr/bin/pulp-migrate calls /usr/bin/python explicitly instead of using env
Last modified: 2013-01-09 12:04:54 EST
The /usr/bin/pulp-migrate command uses #!/usr/bin/python to find the scripting environment. This is bad for running Pulp in environments other than the system installed Python (such as virtualenv, or if the user wants to run in a different version of Python.) It should use env instead, which will find which Python interpreter to use by inspecting the environment.
I completed the work on this ticket in this commit:
jdob reviewed this work as part of my story about migrations, which is why I am skipping this ticket status ahead to MODIFIED.
[root@pulp-master ~]# rpm -q pulp-rpm-server
[root@pulp-master ~]# pulp-manage-db
Beginning database migrations.
Migration package pulp.server.db.migrations.platform is up to date at version 0
Database migrations complete.
Loading content types.
Content types loaded.
Pulp v2.0 released