From: wmorgan Date: Mon, 4 Jun 2007 04:35:50 +0000 (+0000) Subject: bugfix: empty labels for sup-config X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=3a7ab71ea7e7041dba6abd40da6215ecaba1303b;p=sup bugfix: empty labels for sup-config git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@432 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/bin/sup-config b/bin/sup-config index 1cd244a..57085fd 100644 --- a/bin/sup-config +++ b/bin/sup-config @@ -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}\"..."