Skip archive copying when pattern is blank 33/13633/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 23 Nov 2018 01:50:48 +0000 (09:50 +0800)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 23 Nov 2018 01:50:51 +0000 (09:50 +0800)
commit54dd4229000a3a7c44ecdcbe436ed8cac3698e20
treeaeab455e6e44d3fa662bab2265d04d4f02dffb9c
parent9b264c4f8c08aaa2f7b87c825c73f121d1156cdb
Skip archive copying when pattern is blank

Blank patterns are invalid patterns to be copying and causes lftools
to incorrectly copy the entire current working directory. This patch
detects that pattern and skips the pattern as a pattern to archive.

Issue: RELENG-1512
Change-Id: Ia7b0ae4a5b1d6996919bfc2a10deea4c9db84f17
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
lftools/deploy.py