- fix for the last stall tmpfile (#178292)
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Wed, 14 Jun 2006 15:26:15 +0000 (15:26 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Wed, 14 Jun 2006 15:26:15 +0000 (15:26 +0000)
zypp/source/SourceImpl.cc
zypp/source/SourceImpl.h

index 9e0b566..b2b1f81 100644 (file)
@@ -94,6 +94,14 @@ namespace zypp
        }
     };
 
+    /** Ctor, excl. for nullimpl only.
+     * Nullimpl has no Id (\c 0).
+     */
+    SourceImpl::SourceImpl( const null & ) : base::ProvideNumericId<SourceImpl,Source_Ref::NumericId>( NULL )
+        , _res_store_initialized(true)
+        , _tmp_metadata_dir(getZYpp()->tmpPath()) 
+    {}
+    
     ///////////////////////////////////////////////////////////////////
     //
     // METHOD NAME : SourceImpl::SourceImpl
index 681c688..1b4b503 100644 (file)
@@ -351,10 +351,7 @@ namespace zypp
       /** Ctor, excl. for nullimpl only.
        * Nullimpl has no Id (\c 0).
       */
-      SourceImpl( const null & )
-      : base::ProvideNumericId<SourceImpl,Source_Ref::NumericId>( NULL )
-      , _res_store_initialized(true)
-      {}
+      SourceImpl( const null & );
 
     public:
       /** Offer default Impl. */