Changeset - c8fd8cca71f2
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-02-19 19:44:30
marcin@python-works.com
cleanup: remove superfluous os.path.join on absolute path
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/paster_commands/cleanup.py
Show inline comments
 
@@ -116,9 +116,9 @@ class Command(BasePasterCommand):
 
                    % (safe_str(x[0]), safe_str(x[1])) for x in to_remove]))
 

	
 
        if remove:
 
            for name, date_ in to_remove:
 
                print >> sys.stdout, 'removing repository %s' % name
 
                shutil.rmtree(os.path.join(repos_location, name))
 
            for path, date_ in to_remove:
 
                print >> sys.stdout, 'removing repository %s' % path
 
                shutil.rmtree(path))
 
        else:
 
            print 'nothing done exiting...'
 
            sys.exit(0)
0 comments (0 inline, 0 general)