remove duplicate infile.close()
authorKlaus Kaempf <kkaempf@suse.de>
Tue, 11 Apr 2006 14:48:30 +0000 (14:48 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Tue, 11 Apr 2006 14:48:30 +0000 (14:48 +0000)
zypp/target/store/serialize.cc

index 19e2e9d..1f800ce 100644 (file)
@@ -197,7 +197,7 @@ std::string toXML( const Script::constPtr &obj )
   
   out << "  ]]>" << std::endl;
   out << "  </do>" << std::endl;
-  infile.close();
+
   if ( obj->undo_available() )
   {
     out << "  <undo>" << std::endl;
@@ -215,7 +215,7 @@ std::string toXML( const Script::constPtr &obj )
   
     out << "  ]]>" << std::endl;
     out << "  </undo>" << std::endl;
-    infile.close();
+
   }
   out << "</script>" << std::endl;
   return out.str();