FreeBSD Bugzilla – Attachment 160200 Details for
Bug 202340
[PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree. (updated)
202340_fsites.patch (text/plain), 661 bytes, created by
VinÃcius Zavam
on 2015-08-22 02:43:23 UTC
(
hide
)
Description:
[PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree. (updated)
Filename:
MIME Type:
Creator:
VinÃcius Zavam
Created:
2015-08-22 02:43:23 UTC
Size:
661 bytes
patch
obsolete
>--- fastest_sites 2015-08-21 23:39:13.359249000 -0300 >+++ fastest_sites.py 2015-08-21 23:39:35.106535000 -0300 >@@ -1,4 +1,4 @@ >-#!/usr/local/bin/python >+#!/usr/local/bin/python2.7 > # > # Author: Jordan Sissel > # >@@ -84,7 +84,9 @@ > def GetVariable(varname): > if varname in os.environ: > return os.environ[varname] >- make = "make -f /usr/ports/Makefile -V %s" % varname >+ MYPORTSDIR=subprocess.Popen(["/usr/bin/make", "-V", "PORTSDIR"], stdout=subprocess.PIPE) >+ PORTSDIR=MYPORTSDIR.communicate()[0] >+ make = "make -f %s/Makefile -V %s" % (PORTSDIR.replace("\n",""), varname) > value = Run(make) > if value[-1] == "\n": > value = value[:-1]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202340
:
159891
| 160200