diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-03 16:09:48 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-03 16:09:48 +0100 |
commit | 62b743f3fb669642a79042bf9b5395110df37a95 (patch) | |
tree | 097eb32a0a032c6044fd3c6d550d0d3c747d8710 | |
parent | 4fc53b17814bfe1e7ecd067a5c67e6fa687f9890 (diff) | |
download | unperish-62b743f3fb669642a79042bf9b5395110df37a95.tar.gz |
Work around problems in cliapp 0.15.
-rwxr-xr-x | unperish | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -270,11 +270,15 @@ class Unperish(cliapp.Application): '''Publish files via rsync.''' filenames = [] - for pattern in self.settings['rsync-glob']: + # FIXME: the set below is to get rid of duplicates, which happen + # due to a bug in cliapp 0.15. + for pattern in set(self.settings['rsync-glob']): filenames += glob.glob(pattern) + logging.debug('filenames: %s' % filenames) + # FIXME: list(set()) below ditto. self.runcmd(['rsync', '-av', '--delete-after'] + filenames + - self.settings['rsync-to']) + list(set(self.settings['rsync-to']))) def cmd_clean(self, args): '''Clean up the build-area (remove everything except the dir).''' |