add method to check if there are manually configured urls
authorDominik Heidler <dheidler@suse.de>
Thu, 23 Dec 2010 13:40:46 +0000 (14:40 +0100)
committerDominik Heidler <dheidler@suse.de>
Thu, 23 Dec 2010 13:40:46 +0000 (14:40 +0100)
zypp/RepoInfo.cc
zypp/RepoInfo.h

index 3f68ece..3cbdfb3 100644 (file)
@@ -312,6 +312,9 @@ namespace zypp
   bool RepoInfo::baseUrlsEmpty() const
   { return _pimpl->baseUrls().empty(); }
 
+  bool RepoInfo::baseUrlSet() const
+  { return _pimpl->baseurl2dump(); }
+
   // false by default (if not set by setKeepPackages)
   bool RepoInfo::keepPackages() const
   {
index e832d4c..a9c61fa 100644 (file)
@@ -99,6 +99,10 @@ namespace zypp
        */
       bool baseUrlsEmpty() const;
       /**
+       * whether there are manualy configured repository urls
+       */
+      bool baseUrlSet() const;
+      /**
        * number of repository urls
        */
       urls_size_type baseUrlsSize() const;