Skip to content

Commit

Permalink
fixed error at brew update
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmdnk committed Aug 5, 2016
1 parent 940da14 commit d6ba58c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions bin/brew-file
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ __author__ = "rcmdnk"
__copyright__ = "Copyright (c) 2013 rcmdnk"
__credits__ = ["rcmdnk"]
__license__ = "MIT"
__version__ = "v3.14.1"
__date__ = "13/Jul/2016"
__version__ = "v3.14.3"
__date__ = "5/Aug/2016"
__maintainer__ = "rcmdnk"
__email__ = "rcmdnk@gmail.com"
__status__ = "Prototype"
Expand Down Expand Up @@ -466,7 +466,7 @@ class BrewInfo:
import json
package_info = json.loads(self.helper.proc(
"brew info --json=v1 " + package,
False, False)[1][0])[0]
False, False, True, True)[1][0])[0]

opt = ""
for i in package_info["installed"]:
Expand Down Expand Up @@ -1554,7 +1554,7 @@ class BrewFile:

import json
for p in json.loads(self.proc("brew info --json=v1 --installed",
False, False)[1][0]):
False, False, True, True)[1][0]):
if p["name"] not in leaves:
continue
self.brewinfo.brew_list.append(p["name"])
Expand Down Expand Up @@ -1769,7 +1769,7 @@ class BrewFile:
# Check up packages in the input file
self.read_all()
infotmp = self.proc(
"brew info --json=v1 --installed", False, False)[1][0]
"brew info --json=v1 --installed", False, False, True, True)[1][0]
import json
infotmp = json.loads(infotmp)
info = {}
Expand Down Expand Up @@ -1929,7 +1929,8 @@ class BrewFile:
if self.opt["dryrun"]:
print(cmd)
else:
# (ret, lines) = self.proc("brew info " + p, False, False)
# (ret, lines) = self.proc("brew info " + p, False, False,
# True, True)
# for l in lines:
# if l.find("ln -s") >= 0:
# if len(l.split()) > 2:
Expand Down

0 comments on commit d6ba58c

Please sign in to comment.