Changeset 3430 for pykota/trunk/bin/pksetup
- Timestamp:
- 10/05/08 11:31:35 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pksetup
r3413 r3430 269 269 olddirectory = os.getcwd() 270 270 directory = tempfile.mkdtemp() 271 print "\nDownloading additional software not available as packages in %(directory)s" % locals()271 sys.stdout.write("\nDownloading additional software not available as packages in %(directory)s\n" % locals()) 272 272 os.chdir(directory) 273 273 for package in self.otherpackages : … … 420 420 self.setupBackend() 421 421 self.managePrinters(self.listPrinters()) 422 print nowready423 print "The script %s can be used to reinstall in unattended mode.\n" % self.genInstaller()422 sys.stdout.write("%s\n" % nowready) 423 sys.stdout.write("The script %s can be used to reinstall in unattended mode.\n\n" % self.genInstaller()) 424 424 425 425 def genInstaller(self) : … … 459 459 retcode = 0 460 460 if (len(sys.argv) != 2) or (sys.argv[1] == "-h") or (sys.argv[1] == "--help") : 461 print "pksetup v0.1 (c) 2003-2008 Jerome Alet - alet@librelogiciel.com\n\nusage : pksetup distribution\n\ne.g. : pksetup debian\n\nIMPORTANT : only Debian and Ubuntu are currently supported."461 sys.stdout.write("pksetup v0.1 (c) 2003-2008 Jerome Alet - alet@librelogiciel.com\n\nusage : pksetup distribution\n\ne.g. : pksetup debian\n\nIMPORTANT : only Debian and Ubuntu are currently supported.\n") 462 462 elif (sys.argv[1] == "-v") or (sys.argv[1] == "--version") : 463 print "0.1"# pksetup's own version number463 sys.stdout.write("0.1\n") # pksetup's own version number 464 464 else : 465 465 classname = sys.argv[1].strip().title()