Skip to content

Commit

Permalink
unarchive: fix bug blocking 'locale' folder
Browse files Browse the repository at this point in the history
- Update the 'local' folder detection to avoid thinking that 'locale' was a
  'local' folder.  Whoops.
  • Loading branch information
lowell80 committed Apr 9, 2020
1 parent e90fddf commit 0336ae4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ Ksconf 0.7.x

New functionality, massive documentation improvements, metadata support, and Splunk app install fixes.

Release v0.7.8 (DRAFT)
~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Fixed bug in the ``unarchive`` command where a ``locale`` folder was blocked as a ``local`` folder.


Release v0.7.7 (2020-03-05)
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
3 changes: 2 additions & 1 deletion ksconf/commands/unarchive.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def run(self, args):
conffile.name = os.path.join(args.tarball, gaf.path)
app_conf = parse_conf(conffile, profile=PARSECONF_LOOSE)
del conffile
elif gaf_relpath.startswith("local") or gaf_relpath.endswith("local.meta"):
elif gaf_relpath.startswith("local" + os.path.sep) or \
gaf_relpath.endswith("local.meta"):
local_files.add(gaf_relpath)
app_name.add(gaf.path.split("/", 1)[0])
del gaf_app, gaf_relpath
Expand Down

0 comments on commit 0336ae4

Please sign in to comment.