#
# Copyright (c) 2005 rPath, Inc.
#
# All Rights Reserved
#
import os.path

from imagegen import ImageGenerator

class StubImage(ImageGenerator):
    def write(self):
        f = os.path.join(self.cfg.imagesPath, "stub.iso")

        stub = file(f, "w")
        print >> stub, "Hello World!"

        return [f]

@@ -303,11 +303,23 @@
 return %5B
-f
+(f, %22Disk 1%22)
 %5D%0A

update stub_image.py for new API