Handling of remote packages from URLs
Ville Skyttä <[email protected]> Thu, 24 Feb 2011 22:38:35 +0200
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
Hello,
pyflakes seems to be correct when it complains against current git:
./createrepo/__init__.py:592: undefined name 'pkgfile'
I suppose the attached patch would be correct, but I'm not sure how to
test it. Thoughts?
_______________________________________________
Rpm-metadata mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/rpm-metadata
0001-Fix-handling-remote-packages-when-writing-metadata.patch
(text/plain, 936 B)
>From 1150b0711cfac4eb4ecff5ecc07477ffa1c61754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <[email protected]> Date: Thu, 24 Feb 2011 22:33:11 +0200 Subject: [PATCH] Fix handling remote packages when writing metadata. --- createrepo/__init__.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/createrepo/__init__.py b/createrepo/__init__.py index 44a9e82..5f0ba6f 100644 --- a/createrepo/__init__.py +++ b/createrepo/__init__.py @@ -589,7 +589,7 @@ class MetaDataGenerator: # if we're dealing with remote pkgs - pitch it over to doing # them one at a time, for now. elif pkg.find('://') != -1: - po = self.read_in_package(pkgfile, pkgpath=pkgpath, reldir=reldir) + po = self.read_in_package(pkg, pkgpath=pkgpath, reldir=reldir) self.read_pkgs.append(pkg) if po: -- 1.7.4