This patch fixes the problem (https://devel.linux.duke.edu/bugzilla/show_bug.cgi?id=469) where Yumdownloader wouldn't find anything when the requested source is inside a superpackage. For instance, here the program now downloads glibc when asked for the source of one of its subpackages, nscd. There are useful comments in the code to decipher how it works. Below is the terminal output when the case in the bug report is run with the updated code. [kgallowa@________ yum-utils]$ python yumdownloader.py --source nscd jpackage-generic [1/8] livna [2/8] flash [3/8] jpackage-fedora [4/8] updates [5/8] core [6/8] core-source [7/8] extras [8/8] glibc-2.4-4.src.rpm 100% |=========================| 15 MB 08:52 -------------- next part -------------- A non-text attachment was scrubbed... Name: yumdownloader.patch Type: text/x-patch Size: 1985 bytes Desc: not available Url : http://lists.dulug.duke.edu/pipermail/yum/attachments/20060517/3e8eeeaf/yumdownloader.bin