* New upstream release. Please see http://calibre.kovidgoyal.net/new_in_6/ for the list of new features and changes. * remove_postinstall.patch: Update for new version. * build_debug.patch: Does not apply any more, disable for now. Might not be necessary any more. * debian/copyright: Fix reference to versionless GPL. * debian/rules: Drop obsolete dh_desktop call. * debian/rules: Add workaround for weird Python 2.6 setuptools behaviour of putting compiled .so files into src/calibre/plugins/calibre/plugins instead of src/calibre/plugins. * debian/rules: Drop hal fdi moving, new upstream version does not use hal any more. Drop hal dependency, too. * debian/rules: Install udev rules into /lib/udev/rules.d. * Add debian/calibre.preinst: Remove unmodified /etc/udev/rules.d/95-calibre.rules on upgrade. * debian/control: Bump Python dependencies to 2.6, since upstream needs it now.
parser = OptionParser(usage="usage: %prog cat path\nShow file on the device\n\npath should point to a file on the device and must begin with /,a:/ or b:/")
300
304
options, args = parser.parse_args(args)
301
if len(args) != 1:
305
if len(args) != 1:
302
306
parser.print_help()
303
307
return 1
304
308
if args[0].endswith("/"): path = args[0][:-1]
310
314
"and must begin with / or card:/\n\n"+\
311
315
"rm will DELETE the file. Be very CAREFUL")
312
316
options, args = parser.parse_args(args)
313
if len(args) != 1:
317
if len(args) != 1:
314
318
parser.print_help()
315
319
return 1
316
dev.rm(args[0])
320
dev.rm(args[0])
317
321
elif command == "touch":
318
322
parser = OptionParser(usage="usage: %prog touch path\nCreate an empty file on the device\n\npath should point to a file on the device and must begin with /,a:/ or b:/\n\n"+
319
323
"Unfortunately, I cant figure out how to update file times on the device, so if path already exists, touch does nothing" )