Mailinglist Archive: zypp-commit (149 mails)

< Previous Next >
[zypp-commit] r5376 - /trunk/libzypp/zypp/capability/CapabilityImpl.cc
  • From: dmacvicar@xxxxxxxxxxxxxxxx
  • Date: Fri, 13 Apr 2007 15:32:42 -0000
  • Message-id: <20070413153242.ABE4E236F0@xxxxxxxxxxxxxxxx>
Author: dmacvicar
Date: Fri Apr 13 17:32:42 2007
New Revision: 5376

URL: http://svn.opensuse.org/viewcvs/zypp?rev=5376&view=rev
Log:
fix building of file capabilities with attributes

Modified:
    trunk/libzypp/zypp/capability/CapabilityImpl.cc

Modified: trunk/libzypp/zypp/capability/CapabilityImpl.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/capability/CapabilityImpl.cc?rev=5376&r1=5375&r2=5376&view=diff
==============================================================================
--- trunk/libzypp/zypp/capability/CapabilityImpl.cc (original)
+++ trunk/libzypp/zypp/capability/CapabilityImpl.cc Fri Apr 13 17:32:42 2007
@@ -133,24 +133,26 @@
     {
       // NullCap check first:
       if ( name_r.empty() )
-       {
-         // Singleton, so no need to put it into _uset !?
-         return capability::NullCap::instance();
-       }
+      {
+        // Singleton, so no need to put it into _uset !?
+        return capability::NullCap::instance();
+      }
 
       assertResKind( refers_r );
 
       // file:    /absolute/path
       if ( isFileSpec( name_r ) )
-       new capability::FileCap( refers_r, name_r );
+      {
+        return new capability::FileCap( refers_r, name_r );
+      }
 
       //split:   name:/absolute/path
       static const str::regex  rx( "([^/]*):(/.*)" );
       str::smatch what;
       if( str::regex_match( name_r.begin(), name_r.end(), what, rx ) )
-       {
-         new capability::SplitCap( refers_r, what[1].str(), what[2].str() );
-       }
+      {
+        return new capability::SplitCap( refers_r, what[1].str(), what[2].str() );
+      }
 
       //name:    name
       return new capability::NamedCap( refers_r, name_r );

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

< Previous Next >
This Thread
  • No further messages