Browse Source

Skip empty lines

shin- 12 năm trước cách đây
mục cha
commit
8f2639b1aa
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      brew/brew.py

+ 2 - 0
brew/brew.py

@@ -95,6 +95,8 @@ def build_library(repository=None, branch=None, namespace=None, push=False,
         f = open(os.path.join(dst_folder, 'library', buildfile))
         linecnt = 0
         for line in f:
+            if not line or line.strip() == '':
+                continue
             linecnt += 1
             logger.debug('{0} ---> {1}'.format(buildfile, line))
             args = line.split()