Displaying 2 results from an estimated 2 matches for "archlist".
Did you mean:
archaist
2010 Oct 23
0
How to install and update a src rpm?
...ne 293, in ?
util = YumDownloader()
File "/usr/bin/yumdownloader", line 42, in __init__
self.main()
File "/usr/bin/yumdownloader", line 78, in main
self.setupSourceRepos()
File "/usr/bin/yumdownloader", line 118, in setupSourceRepos
self._getSacks(archlist=archlist, thisrepo=repo.id)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 501,
in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 260, in
populateSack
sack.populate(repo, mdtype, callback, cach...
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...andom8 () in
+
+ (* It's quite complex to get yumdownloader to download specific
+ * RPMs. If we use the full NVR, then it will refuse if an installed
+ * RPM is older than whatever is currently in the repo. If we use
+ * just name, it will download all architectures (even with
+ * --archlist).
+ *
+ * Use name.arch so it can download any version but only the specific
+ * architecture.
+ *)
+ let rpms = List.map rpm_of_pkg (PackageSet.elements pkgs) in
+ let rpms = List.map (
+ fun { name = name; arch = arch } ->
+ sprintf "%s.%s" name arch
+ ) rpms in
+...