[entropy.client.interfaces.client] improve old_branch_path file check

This commit is contained in:
Fabio Erculiani
2009-09-11 13:55:55 +02:00
parent 2992b75dfa
commit ab0719a8b3

View File

@@ -174,8 +174,7 @@ class ClientSystemSettingsPlugin(SystemSettingsPlugin):
brf.flush()
brf.close()
if not os.access(old_branch_path, os.R_OK) and \
os.path.isfile(old_branch_path):
if not os.path.isfile(old_branch_path):
write_current_branch(current_branch)
return