Package: revelation Version: 0.4.11-6+b1 Severity: normal Tags: patch Saving the file via SSH failed with this error:
Traceback (most recent call last): File "/usr/bin/revelation", line 195, in <lambda> action.connect("activate", lambda w: self.file_save(self.datafile.get_file(), self.datafile.get_password())) File "/usr/bin/revelation", line 1488, in file_save self.datafile.save(self.entrystore, file, password) File "/usr/lib/python2.5/site-packages/revelation/io.py", line 126, in save file_write(file, self.__handler.export_data(entrystore, password)) File "/usr/lib/python2.5/site-packages/revelation/io.py", line 243, in file_write os.rename(file, backup) OSError: [Errno 2] No such file or directory I attach the file io.py with my patch and the diff file. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core) Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages revelation depends on: ii gconf2 2.28.1-3 GNOME configuration database syste ii gnome-icon-theme 2.30.3-1 GNOME Desktop icon theme ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib ii libcrack2 2.8.16-2 pro-active password checker librar ii python 2.6.5-5 An interactive high-level object-o ii python-central 0.6.14+nmu2 register and build utility for Pyt ii python-crypto 2.1.0-2 cryptographic algorithms and proto ii python-gnome2 2.28.1-1 Python bindings for the GNOME desk ii python-gtk2 2.17.0-2 Python bindings for the GTK+ widge ii shared-mime-info 0.71-3 FreeDesktop.org shared MIME databa revelation recommends no packages. revelation suggests no packages.
io.py
Description: application/symlink
240a241,244 > #if file_exists(file) == True: > # backup = file + ".bak" > # os.rename(file, backup) > 243,244c247,250 < os.rename(file, backup) < --- > f = gnomevfs.create(backup, gnomevfs.OPEN_WRITE) > f.write(gnomevfs.read_entire_file(file)) > f.close() > >