equal
deleted
inserted
replaced
26 |
26 |
27 def nlinks(name): |
27 def nlinks(name): |
28 '''return number of hardlinks for the given file''' |
28 '''return number of hardlinks for the given file''' |
29 return os.lstat(name).st_nlink |
29 return os.lstat(name).st_nlink |
30 |
30 |
31 def parse_patch_output(output_line): |
31 def parsepatchoutput(output_line): |
32 """parses the output produced by patch and returns the filename""" |
32 """parses the output produced by patch and returns the filename""" |
33 pf = output_line[14:] |
33 pf = output_line[14:] |
34 if os.sys.platform == 'OpenVMS': |
34 if os.sys.platform == 'OpenVMS': |
35 if pf[0] == '`': |
35 if pf[0] == '`': |
36 pf = pf[1:-1] # Remove the quotes |
36 pf = pf[1:-1] # Remove the quotes |