ref: refs/heads/master
commit 2e3d92947d39e305e8ecc4d3fa86ebf0f2f16f27
Author: Michael Andres
Date: Thu Mar 5 16:09:05 2009 +0100
comment updated
---
zypp/Repository.cc | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/zypp/Repository.cc b/zypp/Repository.cc
index 96bfea9..7e880af 100644
--- a/zypp/Repository.cc
+++ b/zypp/Repository.cc
@@ -116,7 +116,7 @@ namespace zypp
if ( key == it.cpeId() )
return true;
}
-
+
return false;
}
@@ -199,6 +199,8 @@ namespace zypp
// satsolver priority is based on '<', while yum's repoinfo
// uses 1(highest)->99(lowest). Thus we use -info_r.priority.
_repo->priority = -info_r.priority();
+ // subpriority could be used to e.g. prefer http over dvd iff both have same priority.
+ // _repo->subpriority = 0;
}
void Repository::clearInfo()
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org