diff --git a/lib/FormulaRepo.py b/lib/FormulaRepo.py index 92b8142..5872677 100644 --- a/lib/FormulaRepo.py +++ b/lib/FormulaRepo.py @@ -65,19 +65,17 @@ class FormulaRepo(): def check_tracking_info(self, version): # tracking a specific tag on the repo # check to make sure that the given tag name actually exists first - if not version in self.get_tags(): + if not version in self.repo.tag('-l', version): print('%s is not an existing tag name for %s - please fix this.' % (version, self.repo_path)) sys.exit(1) repo_tag = self.get_current_version() - print(version) - print(repo_tag) # check to make sure that the current tracked tag is, in fact, what we want if version != repo_tag: self.switch_version(version) # let the user know which tag we're using - print('For %s, we\'re using the \'%s\' tag.' % (self.repo_path, version)) + #print('For %s, we\'re using the \'%s\' tag.' % (self.repo_path, version)) # pull any new updates for the repo diff --git a/lib/Utils.py b/lib/Utils.py index bc7eaa7..c66811e 100644 --- a/lib/Utils.py +++ b/lib/Utils.py @@ -12,6 +12,7 @@ class Utils(): @staticmethod def remove_ansi_from_list(l): for index, element in enumerate(l): - l[index] = Utils.remove_ansi(element) + l[index] = Utils.remove_ansi(element).strip() return l +