backend/satellite_tools/disk_dumper/iss.py | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit d3f88ad2629c3c36d1fc623643599798cb9b2576 Author: Miroslav Suchý msuchy@redhat.com Date: Mon Apr 16 15:23:39 2012 +0200
812789 - write nicer error message in case you are missing rpm files
this can happen when you are exporting channel which has been synced using --no-rpms
diff --git a/backend/satellite_tools/disk_dumper/iss.py b/backend/satellite_tools/disk_dumper/iss.py index 668f4b1..c459740 100644 --- a/backend/satellite_tools/disk_dumper/iss.py +++ b/backend/satellite_tools/disk_dumper/iss.py @@ -883,6 +883,8 @@ class Dumper(dumper.XML_Dumper): #get the dirs to the rpm dirs_to_rpm = os.path.split(path_to_rpm)[0]
+ if (not rpm['path']): + raise ISSError("Error: Missing RPM under the satellite mount point. (Package id: %s)" % rpm['id'], "") #get the path to the rpm from under the satellite's mountpoint satellite_path = os.path.join(CFG.MOUNT_POINT, rpm['path'])
spacewalk-commits@lists.fedorahosted.org