diff options
Diffstat (limited to 'unperish')
-rwxr-xr-x | unperish | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -52,20 +52,20 @@ class Unperish(cliapp.Application): self.autofill_meta() self.read_meta() - try: - with open(self.join(self.dirname, 'debian', 'control')) as f: - self.debian_control = debian.deb822.Deb822(f) - except IOError: - pass - - try: - with open(self.join(self.dirname, 'debian', 'changelog')) as f: - self.debian_changelog = debian.changelog.Changelog(f) - except IOError: - pass - cmd_methods = self._subcommands() for arg in args: + try: + with open(self.join(self.dirname, 'debian', 'control')) as f: + self.debian_control = debian.deb822.Deb822(f) + except IOError: + pass + + try: + with open(self.join(self.dirname, 'debian', 'changelog')) as f: + self.debian_changelog = debian.changelog.Changelog(f) + except IOError: + pass + method = self._normalize_cmd(arg) if method in cmd_methods: if self.settings['verbose']: |