Show More
@@ -332,8 +332,8 class RepoModel(BaseModel): | |||||
332 | old_path = os.path.join(self.repos_path, old) |
|
332 | old_path = os.path.join(self.repos_path, old) | |
333 | new_path = os.path.join(self.repos_path, new) |
|
333 | new_path = os.path.join(self.repos_path, new) | |
334 | if os.path.isdir(new_path): |
|
334 | if os.path.isdir(new_path): | |
335 |
raise Exception('Was trying to rename to already existing dir %s' |
|
335 | raise Exception('Was trying to rename to already existing dir %s' \ | |
336 |
|
|
336 | % new_path) | |
337 | shutil.move(old_path, new_path) |
|
337 | shutil.move(old_path, new_path) | |
338 |
|
338 | |||
339 | def __delete_repo(self, repo): |
|
339 | def __delete_repo(self, repo): |
General Comments 0
You need to be logged in to leave comments.
Login now