Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
minor bug fixes for 0.0.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
clburlison committed Feb 19, 2016
1 parent 8dc39f4 commit 5dcfcf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Makefile for pinpoint related tasks

INSTALLDIR="./pkgroot/Library/Application Support/pinpoint/bin/"
PKGTITLE="pinpoint"
PKGVERSION=$(shell python ${INSTALLDIR}/pinpoint --version)
PKGVERSION="0.0.1"
PKGID=com.clburlison.pinpoint
PROJECT="pinpoint"

Expand All @@ -15,7 +14,7 @@ help:
## clean - Clean up temporary working directories
clean:
rm -f ./pinpoint*.{dmg,pkg}
rm -f ${INSTALLDIR}/FoundationPlist.*.pyc
rm -f ./pkgroot/Library/Application\ Support/pinpoint/bin/FoundationPlist/*.pyc

## pkg - Create a package using pkgbuild
pkg: clean
Expand Down
7 changes: 4 additions & 3 deletions pkgroot/Library/Application Support/pinpoint/bin/pinpoint
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import logging
import json
from urllib2 import urlopen, URLError, HTTPError
from datetime import datetime, timedelta
from time import gmtime, strftime, strptime
from time import gmtime, strftime, strptime, sleep
import objc
import FoundationPlist

Expand Down Expand Up @@ -282,8 +282,8 @@ def add_python():
FoundationPlist.writePlist(clients_dict, das_plist)
os.chown(das_plist, 205, 205)
service_handler('load')
logger.info("Location Services was enabled. We are waiting 30 seconds before doing a lookup.")
time.sleep(30)
logging.info("Location Services was enabled. We are waiting 30 seconds before doing a lookup.")
sleep(30)
else:
logging.info("Python is enabled")

Expand Down Expand Up @@ -477,6 +477,7 @@ def main():
pass
try:
write_to_cache_location(plist, plist['CurrentStatus'])
logging.info("Current location: %s, %s", plist['Latitude'], plist['Longitude'])
logging.info("Run status: %s", plist['CurrentStatus'])
except KeyError:
status = ("Error obtaining a location. LS was unresponsive "
Expand Down

0 comments on commit 5dcfcf5

Please sign in to comment.