diff options
Diffstat (limited to 'unperish')
-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).''' |