FreeBSD Bugzilla – Attachment 159891 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.
fastest_sites.patch (text/plain), 589 bytes, created by
VinÃcius Zavam
on 2015-08-15 02:28:28 UTC
(
hide
)
Description:
[PATCH] ports-mgmt/fastest_sites: use PORTSDIR to find where is the ports tree.
Filename:
MIME Type:
Creator:
VinÃcius Zavam
Created:
2015-08-15 02:28:28 UTC
Size:
589 bytes
patch
obsolete
>--- fastest_sites 2015-08-13 13:51:47.523696000 -0300 >+++ fastest_sites.py 2015-08-12 07:33:07.342410000 -0300 >@@ -84,7 +84,10 @@ > 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] >+ print PORTSDIR.replace('\n', '') >+ 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