Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
stoeffel committed Oct 17, 2016
1 parent b896dcb commit 9958a22
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions native_package_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def find_all_native_files(path):
for root, dirnames, filenames in os.walk(path):
for filename in fnmatch.filter(filenames, '*.js'):
native_files.append(os.path.join(root, filename))
native_files
return native_files


def munge_names(vendor_dir, repository, packages):
Expand All @@ -168,16 +168,13 @@ def munge_names(vendor_dir, repository, packages):
"""
namespace, name = namespace_from_repo(repository)
for package in packages:
native_files = []
for root, dirnames, filenames in os.walk(package_dir(vendor_dir, package)):
for filename in fnmatch.filter(filenames, '*.js'):
native_files.append(os.path.join(root, filename))
native_files = find_all_native_files(package_dir(vendor_dir, package))
for native_file in native_files:
replace_in_file(
native_file,
format_native_name(package['namespace'], package['name']),
format_native_name(namespace, name)
)
replace_in_file(
native_file,
format_native_name(package['namespace'], package['name']),
format_native_name(namespace, name)
)


def update_elm_package(vendor_dir, configs, packages):
Expand Down

0 comments on commit 9958a22

Please sign in to comment.