Package Details: dir2ogg 0.12-2

Git Clone URL: https://aur.archlinux.org/dir2ogg.git (read-only)
Package Base: dir2ogg
Description: dir2ogg converts mp3, m4a, wma, and wav files into ogg-vorbis format
Upstream URL: http://jak-linux.org/projects/dir2ogg
Keywords: audio convert ogg tool
Licenses: GPL2
Submitter: jetm
Maintainer: jetm
Last Packager: jetm
Votes: 6
Popularity: 0.036407
First Submitted: 2015-08-15 15:22
Last Updated: 2017-04-17 19:06

Latest Comments

jetm commented on 2017-04-17 19:07

@jevv: I have submitted this change. Let me know if it works. Thanks!

jevv commented on 2017-04-15 21:02

Please apply the following patch:

+++++
% cat os_rename__to__shutil_move.patch
diff -Naur dir2ogg-0.12-old/dir2ogg dir2ogg-0.12/dir2ogg
--- dir2ogg-0.12-old/dir2ogg 2017-04-15 14:45:21.189456773 -0600
+++ dir2ogg-0.12/dir2ogg 2017-04-15 14:46:21.439371813 -0600
@@ -34,6 +34,7 @@
import locale
import sys
import os, os.path
+import shutil
import re
import warnings
from fnmatch import _cache, translate
@@ -395,7 +396,7 @@
if self.decoder == 'mplayer':
# Move the file for mplayer (which uses tempwav), so it works
# for --preserve-wav.
- os.rename(tempwav, self.songwav)
+ shutil.move(tempwav, self.songwav)
if retcode != 0:
return (False, None)
else:
+++++

It's necessary to prevent dir2ogg failing with:

+++++
File "/usr/bin/dir2ogg", line 398, in decode
os.rename(tempwav, self.songwav)
OSError: [Errno 18] Invalid cross-device link
+++++

That when the current directory FS doesn't match the final destination directory FS.

See "http://pythoncentral.io/how-to-rename-move-a-file-in-python" for more details...

That should move the AUR package to "-2" release, :-)

BTW...

Upstream issue filed:
https://github.com/julian-klode/dir2ogg/issues/4

Upstream PR provided:
https://github.com/julian-klode/dir2ogg/pull/5

Thanks!