diff options
Diffstat (limited to 'mirrorselect')
-rwxr-xr-x | mirrorselect/main.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mirrorselect/main.py b/mirrorselect/main.py index 45cc30b..6a9c43d 100755 --- a/mirrorselect/main.py +++ b/mirrorselect/main.py @@ -427,6 +427,9 @@ class MirrorSelect(object): else: urls = self.select_urls(hosts, options) - self.write_config(fsmirrors + urls, options.output, - config_path, options.rsync) - + if len(urls): + self.write_config(fsmirrors + urls, options.output, + config_path, options.rsync) + else: + self.output.write("No search results found. " + "Check your filter settings and re-run mirrorselect\n") |