[PATCH] Fix power checking on OS X

2015-06-11 Thread Panagiotis Astithas
The output of "pmset -g batt" changed at some point from "Currently drawing from 'AC Power'" to the slightly different "Now drawing from 'AC Power'". Starting the match from "drawing" makes the check work in both old and new versions of O

Re: [PATCH] Fix power checking on OS X

2015-06-12 Thread Panagiotis Astithas
On Fri, Jun 12, 2015 at 6:46 AM, Eric Sunshine wrote: > On Thu, Jun 11, 2015 at 10:37 AM, Panagiotis Astithas > wrote: >> The output of "pmset -g batt" changed at some point from >> "Currently drawing from 'AC Power'" to the slightly differen

[PATCH] Fix power checking on OS X

2015-06-16 Thread Panagiotis Astithas
The output of "pmset -g batt" changed at some point from "Currently drawing from 'AC Power'" to the slightly different "Now drawing from 'AC Power'". Starting the match from "drawing" makes the check work in both old and new versions of O

Re: [PATCH] Fix power checking on OS X

2015-06-16 Thread Panagiotis Astithas
On Tue, Jun 16, 2015 at 8:32 PM, Junio C Hamano wrote: > Panagiotis Astithas writes: > >> The output of "pmset -g batt" changed at some point from >> "Currently drawing from 'AC Power'" to the slightly different >> "Now drawing from