disable "mas account" check (https://github.com/mas-cli/mas#%EF%B8%8F-known-issues), check identifier only for mas app
@@ -28,8 +28,8 @@ __author__ = "rcmdnk"
__copyright__ = "Copyright (c) 2013 rcmdnk"
__credits__ = ["rcmdnk"]
__license__ = "MIT"
-__version__ = "v8.5.7"
-__date__ = "10/Nov/2021"
+__version__ = "v8.5.8"
+__date__ = "27/Nov/2021"
__maintainer__ = "rcmdnk"
__email__ = "rcmdnk@gmail.com"
__status__ = "Prototype"
@@ -1463,10 +1463,12 @@ class BrewFile:
exit_on_err=False)[0] != 0:
sys.exit(1)
- if self.proc(self.opt["mas_cmd"] + " account", print_cmd=False,
- print_out=False, exit_on_err=False)[0] != 0:
- self.err("\nPlease sign in to the App Store", 0)
- sys.exit(1)
+ # Disable check until this issue is solved:
+ # https://github.com/mas-cli/mas#%EF%B8%8F-known-issues
+ #if self.proc(self.opt["mas_cmd"] + " account", print_cmd=False,
+ # print_out=False, exit_on_err=False)[0] != 0:
+ # self.err("\nPlease sign in to the App Store", 0)
+ # sys.exit(1)
self.opt["is_mas_cmd"] = 1
@@ -2038,10 +2040,11 @@ class BrewFile:
# App Store
if is_mac() and self.opt["appstore"]:
+ id_list = [x.split()[0] for x in self.get("appstore_list")]
for p in self.get("appstore_input"):
- if p in self.get("appstore_list"):
- continue
identifier = p.split()[0]
+ if identifier in id_list:
+ continue
if identifier.isdigit() and len(identifier) >= 9:
package = " ".join(p.split()[1:])
else:
