[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [rhel6-branch] Do not backtrace if repo is specified through kickstart only (#659781).

On 12/03/2010 07:41 PM, Chris Lumens wrote:
diff --git a/yuminstall.py b/yuminstall.py
index 6a55273..994a9bc 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -682,6 +682,8 @@ class AnacondaYum(YumSorter):
          return retval

      def _getTreeinfo(self, baseurl):
+        if not baseurl:
+            return None
          if baseurl.startswith("http") or baseurl.startswith("ftp"):
              if not network.hasActiveNetDev():
                  if not self.anaconda.intf.enableNetwork():

Do we still end up getting the .treeinfo file and addons from somewhere,
though?  We need to make sure addons are fetched for every repo enabled.

- Chris


Yes, I think so. The traceback appears through _getReleasever(). If gettreeinfo fails there we fallback on the product version obtained through product.py.

When getting addons for the additional repos, the correct non-None baseurl parameter is passed for those, the network gets activated and the correct .treeinfo is returned.

I haven't tested this or stepped through the code, but the yuminstall.py looks like it works this way.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]