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

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

 



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

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.

Ales

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux