architecture accessors
authorKlaus Kaempf <kkaempf@suse.de>
Mon, 20 Feb 2006 16:05:58 +0000 (16:05 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Mon, 20 Feb 2006 16:05:58 +0000 (16:05 +0000)
zypp/ZYpp.cc
zypp/ZYpp.h

index 610d7a6..5e76192 100644 (file)
@@ -110,6 +110,11 @@ namespace zypp
   ZYpp::LocaleSet ZYpp::getRequestedLocales() const
   { return _pimpl->getRequestedLocales(); }
 
+  Arch ZYpp::architecture() const
+  { return _pimpl->architecture(); }
+  void ZYpp::setArchitecture( const Arch & arch )
+  { _pimpl->setArchitecture( arch ); }
+
   /////////////////////////////////////////////////////////////////
 } // namespace zypp
 ///////////////////////////////////////////////////////////////////
index 58cee3d..f34469b 100644 (file)
@@ -120,6 +120,14 @@ namespace zypp
     /** */
     LocaleSet getRequestedLocales() const;
 
+  public:
+    /** Get the system architecture.   */
+    Arch architecture() const;
+    /** Set the system architecture.
+       This should be used for testing/debugging only since the Target backend
+       won't be able to install incompatible packages ;-)   */
+    void setArchitecture( const Arch & arch );
+
   protected:
     /** Dtor */
     virtual ~ZYpp();