Skip to content

Commit

Permalink
Fix stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
j0057 committed Aug 13, 2014
1 parent 4814250 commit 43d46a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions github_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def gh_release_notes(repo_name, tag_name):

def gh_asset_upload(repo_name, tag_name, pattern):
release = get_release_info(repo_name, tag_name)
for filename in glob.glob(filename):
for filename in glob.glob(pattern):
with open(filename, 'rb') as f:
basename = os.path.basename(filename)
response = request('POST',
Expand All @@ -126,7 +126,6 @@ def gh_asset_upload(repo_name, tag_name, pattern):
response.raise_for_status()

def gh_asset_erase(repo_name, tag_name, pattern):
#asset = get_asset_info(repo_name, tag_name, filename)
release = get_releases(repo_name)
for asset in release['assets']:
if not fnmatch.fnmatch(asset['name'], pattern):
Expand Down

0 comments on commit 43d46a5

Please sign in to comment.