Lines Matching refs:orig
596 """Save away an existing legacy file to ${legacy}.orig."""
601 orig = '.'.join((legacy, 'orig'))
602 if os.path.exists(orig): # But not 2 copies
604 os.unlink(orig)
608 os.link(legacy, orig) # Avoid losing file temporarily
614 """Remove ${legacy}.orig if a legacy file exists."""
619 orig = '.'.join((legacy, 'orig'))
620 if os.path.exists(orig): # ${legacy}.orig exists
622 os.unlink(orig) # Remove if possible
623 self.print_msg("Removed old (orig) backup.")