]> git.cworth.org Git - sup/commitdiff
bugfix: empty labels for sup-config
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 4 Jun 2007 04:35:50 +0000 (04:35 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 4 Jun 2007 04:35:50 +0000 (04:35 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@432 5c8cc53c-5e98-4d25-b20a-d8db53a31250

bin/sup-config

index 1cd244ace1cb96a868072ffb896337e0f38f20e4..57085fd43042005cb19aa4cbf26abfabd54b973b 100644 (file)
@@ -78,7 +78,7 @@ def add_source
         return if srv.nil? || srv.empty?
         $last_server = srv
 
-        fn = axe "What's the full path to the mbox file?", $last_fn #" stupid ruby-mode
+        fn = axe "What's the path to the mbox file?", $last_fn #" stupid ruby-mode
         return if fn.nil? || fn.empty?
         $last_fn = fn
         fn = "/#{fn}" # lame
@@ -133,7 +133,7 @@ def add_source
     cmd = build_cmd "sup-add"
     cmd += " --unusual" unless usual
     cmd += " --archive" if archive
-    cmd += " --labels=#{labels.join(',')}" if labels
+    cmd += " --labels=#{labels.join(',')}" if labels && !labels.empty?
     cmd += " #{uri}"
 
     puts "Ok, trying to run \"#{cmd}\"..."