Fixed with an NMU.  Patch follows.

Ben.

diff -u soundconverter-0.9.7/debian/changelog 
soundconverter-0.9.7/debian/changelog
--- soundconverter-0.9.7/debian/changelog
+++ soundconverter-0.9.7/debian/changelog
@@ -1,3 +1,12 @@
+soundconverter (0.9.7-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Add dependency on gstreamer0.10-plugins-base. (Closes: #487045)
+  * Apply upstream change to prevent overwriting source file. (Closes: #461526)
+  * Convert Homepage to a real control field.
+
+ -- Ben Hutchings <[EMAIL PROTECTED]>  Sun, 29 Jun 2008 18:03:11 +0000
+
 soundconverter (0.9.7-1) unstable; urgency=low
 
   * New upstream release.
diff -u soundconverter-0.9.7/debian/control soundconverter-0.9.7/debian/control
--- soundconverter-0.9.7/debian/control
+++ soundconverter-0.9.7/debian/control
@@ -12,9 +12,8 @@
-Depends: python, python-gnome2, python-glade2, python-gst0.10, 
gstreamer0.10-plugins-good, gstreamer0.10-gnomevfs,
+Depends: python, python-gnome2, python-glade2, python-gst0.10, 
gstreamer0.10-plugins-good, gstreamer0.10-gnomevfs, gstreamer0.10-plugins-base
 Suggests: gstreamer0.10-plugins-ugly, gstreamer0.10-lame, gstreamer0.10-ffmpeg
 Description: Convert audio files into other formats
  SoundConverter is a simple sound converter application for the GNOME
  environment. It reads sound files in any format supported by GStreamer
  and outputs them in Ogg Vorbis, FLAC, or WAV format, or MP3 format if
  you have the GStreamer lame plugin.
- .
- Homepage: http://soundconverter.berlios.de/
+Homepage: http://soundconverter.berlios.de/
only in patch2:
unchanged:
--- soundconverter-0.9.7.orig/debian/patches/100_dont_overwrite_source.diff
+++ soundconverter-0.9.7/debian/patches/100_dont_overwrite_source.diff
@@ -0,0 +1,27 @@
+# 100_dont_overwrite_source.diff
+# extracted from r185 of upstream SVN
+--- soundconverter-0.9.7.orig/src/soundconverter.py
++++ soundconverter-0.9.7/src/soundconverter.py
+@@ -1804,7 +1804,12 @@
+               except gnomevfs.InvalidURIError:
+                       log("Invalid URI: '%s'" % output_filename)
+                       return
+-                              
++              
++              # do not overwrite source file !!
++              if output_filename == sound_file.get_uri():
++                      error.show(_("Cannot overwrite source file(s)!"), "")
++                      raise ConverterQueueCanceled()
++              
+               if exists:
+                       if self.overwrite_action != None:
+                               result = self.overwrite_action
+@@ -2126,6 +2131,8 @@
+                               self.converter.add(sound_file)
+               except ConverterQueueCanceled:
+                       log(_("canceling conversion."))
++                      self.conversion_ended()
++                      self.set_status(_("Conversion canceled"))
+               else:
+                       self.set_status("")
+                       self.converter.run()
H
--- END ---

-- 
Ben Hutchings
Man invented language to satisfy his deep need to complain. - Lily Tomlin

Attachment: signature.asc
Description: Digital signature

Reply via email to