From ab90c64e08a5c06e07e5dead8265087ee49289c9 Mon Sep 17 00:00:00 2001 From: Dominik Heidler Date: Thu, 23 Dec 2010 14:40:46 +0100 Subject: [PATCH] add method to check if there are manually configured urls --- zypp/RepoInfo.cc | 3 +++ zypp/RepoInfo.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/zypp/RepoInfo.cc b/zypp/RepoInfo.cc index 3f68ece..3cbdfb3 100644 --- a/zypp/RepoInfo.cc +++ b/zypp/RepoInfo.cc @@ -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 { diff --git a/zypp/RepoInfo.h b/zypp/RepoInfo.h index e832d4c..a9c61fa 100644 --- a/zypp/RepoInfo.h +++ b/zypp/RepoInfo.h @@ -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; -- 2.7.4