bsd4grml was not copied correctly to the target device.
authorUlrich Dangel <uli@spamt.net>
Mon, 20 Sep 2010 13:16:55 +0000 (15:16 +0200)
committerUlrich Dangel <uli@spamt.net>
Mon, 20 Sep 2010 13:30:05 +0000 (15:30 +0200)
This fixes a bug introduced in commit c70267a9. The problem is that the
bsd4grml addon is a directory and it needs a trailing slash for copying
with rysnc. handle_addon_copy just search for the file and copies it
directly to the target device without adding a slash.

The current fix is to remove the explicit destination filename in
handle_addon_copy.

Thanks to  Alex Mestiashvili for reporting that bug.

grml2usb

index 161aae0..092e34d 100755 (executable)
--- a/grml2usb
+++ b/grml2usb
@@ -1201,7 +1201,7 @@ def handle_addon_copy(filename, dst, iso_mount):
     if file_location is None:
         logging.warn("Warning: %s not found (that's fine if you don't need it)",  filename)
     else:
-        exec_rsync(file_location, dst + filename)
+        exec_rsync(file_location, dst)
 
 
 def copy_addons(iso_mount, target):