rlishtaba / rubyripper

Automatically exported from code.google.com/p/rubyripper
0 stars 0 forks source link

Won't run if $HOME/.rubyripper is a symlink #415

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1) Please describe the steps to reproduce the situation:
a. mv $HOME/.rubyripper /tmp
b. ln -s /tmp/.rubyripper
c. rubyripper_cli.rb outputs:

2) What is the expected output? What do you see instead?
I expect it to run okay, as the symlink points to a valid .rubyripper 
settings directory. This used to work, but now I get:
peplin@tangent:~$ dev/rubyripper/rubyripper_cli.rb                             
./dev/rubyripper/rr_lib.rb:156:in `delete': Not a directory - 
/home/peplin/.rubyripper (Errno::ENOTDIR)
    from ./dev/rubyripper/rr_lib.rb:156:in `migrationCheck'
    from ./dev/rubyripper/rr_lib.rb:127:in `initialize'
    from dev/rubyripper/rubyripper_cli.rb:42:in `new'
    from dev/rubyripper/rubyripper_cli.rb:42:in `initialize'
    from dev/rubyripper/rubyripper_cli.rb:497:in `new'
    from dev/rubyripper/rubyripper_cli.rb:497

3) What version of rubyripper are you using? On what operating system? The
gtk2 of commandline interface?
CLI on Ubuntu Linux 10.04, using rubyripper HEAD from git.

4) Is this not already fixed with the latest & greatest code? See for
instructions the Source tab above.
Already running latest.

5) Does the problem happen with different discs? If so, please attach
the output of cdparanoia -Q.
N/A

6) Please explain why this change is important for you. Also, how many
users would benefit from this change?
I sync my .rubyrippper settings directory among computers using Dropbox by 
creating a symlink from $HOME/.rubyripper to $HOME/Dropbox/.rubyripper - 
now that it checks that $HOME/.rubyripper is an actual directory, I have to 
actually copy of the files manually on every computer if there are changes.

Please provide any additional information below. The more usefull
information provided, the sooner it will be fixed.

Original issue reported on code.google.com by chris.pe...@gmail.com on 1 May 2010 at 1:40

GoogleCodeExporter commented 8 years ago
Thanks for report. Although replacing files with symlinks remains the 
responsibility 
for the user, this was easily fixed with commit:
http://github.com/rubyripperdev/rubyripper/commit/f8a878464d57d817264a2a8cdefcc7
0a9e5f
331e

If you still want to share the config file you should symlink the file: 
$HOME/.config/rubyripper/settings

Original comment by boukewou...@gmail.com on 6 May 2010 at 8:02