Skip to content

Commit

Permalink
fix parsing error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jintin committed Jan 17, 2017
1 parent 97ddbe7 commit ec6ac9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion andle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import andle.android
import andle.sdk

__version__ = "1.6.1"
__version__ = "1.7.0"


def update(path, dryrun, remote, gradle, interact):
Expand Down
4 changes: 3 additions & 1 deletion andle/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def getpath():
print("set sdk path first") # TODO prompt input
sys.exit(0)
file = open(DATA_PATH)
return file.read()
return file.read().rstrip('\n')


def load(path=""):
Expand Down Expand Up @@ -59,6 +59,8 @@ def find_dependency(data, tag, path):
find_dependency(data, tag + "/" + f, path + "/" + f)
if no_dir:
list = tag[1:].split("/")
if len(list) < 2:
return
version = list.pop(len(list) - 1)
name = list.pop(len(list) - 1)
package = ".".join(list)
Expand Down

0 comments on commit ec6ac9d

Please sign in to comment.