original file finding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dongliang:

In scripts/checktransupdate.py, 
def get_origin_path(file_path):
    paths = file_path.split("/")
    tidx = paths.index("translations")
    opaths = paths[:tidx]
    opaths += paths[tidx + 2 :]
    return "/".join(opaths)

It use a different way instead of the ':Original:' line to find out the origin file.
That may cause file finding failed if we have a different dir map for translation.

Yes, we have no worry since all of them are same. But could we take the ':Original:' usage for a possible dir map changes?

Anyway, just a quick idea.

Thanks
Alex




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux