Mailinglist Archive: zypp-commit (731 mails)

< Previous Next >
[zypp-commit] r6974 - /trunk/repotools/zypptools/output/output.rb
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Wed, 29 Aug 2007 12:11:00 -0000
  • Message-id: <20070829121100.B1223BA534@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Wed Aug 29 14:11:00 2007
New Revision: 6974

URL: http://svn.opensuse.org/viewcvs/zypp?rev=6974&view=rev
Log:
- use case

Modified:
    trunk/repotools/zypptools/output/output.rb

Modified: trunk/repotools/zypptools/output/output.rb
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/repotools/zypptools/output/output.rb?rev=6974&r1=6973&r2=6974&view=diff
==============================================================================
--- trunk/repotools/zypptools/output/output.rb (original)
+++ trunk/repotools/zypptools/output/output.rb Wed Aug 29 14:11:00 2007
@@ -6,12 +6,9 @@
 
   def OutputFactory(type, path)
 
-    if type == :yum
-      return ZYppTools::YumOutput.new(path)
-    end
-
-    if type == :yast
-      return ZYppTools::YastOutput.new(path)
+    case type
+        when :yum  : return ZYppTools::YumOutput.new(path)
+        when :yast : return ZYppTools::YastOutput.new(path)
     end
 
     exit 1

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages