fixes issue in reposync using old cache af non-root user (rhbz #1079387)
W:134,11: Unused variable junk (unused-variable)
W:280, 8: Unused variable local_size (unused-variable)
remove unused wildcard import
W: 45, 0: Unused import getCacheDir (unused-import)
codestyle changes

addressing:
C: 52, 0: No space allowed before comma
def sortPkgObj(pkg1 ,pkg2):
                    ^ (bad-whitespace)
C: 52, 0: Exactly one space required after comma
def sortPkgObj(pkg1 ,pkg2):
                    ^ (bad-whitespace)
C: 60, 0: Trailing whitespace (trailing-whitespace)
C: 82, 0: No space allowed after bracket
            cache[name] = { 'path': fn, 'size': st.st_size, 'device': st.st_dev }
                          ^ (bad-whitespace)
C: 82, 0: No space allowed before bracket
            cache[name] = { 'path': fn, 'size': st.st_size, 'device': st.st_dev }
                                                                                ^ (bad-whitespace)
C:104, 0: Trailing whitespace (trailing-whitespace)
C:108, 0: Trailing whitespace (trailing-whitespace)
C:114, 0: Trailing whitespace (trailing-whitespace)
C:116, 0: Trailing whitespace (trailing-whitespace)
C:118, 0: Trailing whitespace (trailing-whitespace)
C:120, 0: Trailing whitespace (trailing-whitespace)
C:124, 0: Trailing whitespace (trailing-whitespace)
C:124, 0: Exactly one space required after comma
    parser.add_option("","--download-metadata", dest="downloadmd",
                        ^ (bad-whitespace)
C:125, 0: Trailing whitespace (trailing-whitespace)
C:133, 0: Trailing whitespace (trailing-whitespace)
C:140, 0: Trailing whitespace (trailing-whitespace)
C:144, 0: Trailing whitespace (trailing-whitespace)
C:177, 0: Trailing whitespace (trailing-whitespace)
C:189, 0: Trailing whitespace (trailing-whitespace)
C:193, 0: Trailing whitespace (trailing-whitespace)
C:206, 0: Exactly one space required after assignment
            arches +=  ['src']
                   ^^ (bad-whitespace)
C:212, 0: Trailing whitespace (trailing-whitespace)
C:221, 0: Trailing whitespace (trailing-whitespace)
C:256, 0: Trailing whitespace (trailing-whitespace)
C:269, 0: Exactly one space required before assignment
                    basename  = os.path.basename(resultfile)
                              ^ (bad-whitespace)
C:273, 0: Exactly one space required after comma
                except yum.Errors.RepoMDError,e :
                                             ^ (bad-whitespace)
C:273, 0: No space allowed before :
                except yum.Errors.RepoMDError,e :
                                                ^ (bad-whitespace)
C:276, 0: Trailing whitespace (trailing-whitespace)
C:335, 0: Trailing whitespace (trailing-whitespace)
add i18n to reposync
get rid of python 2.4 compat

python 2.4 is used in el5 and new yum-utils are build only for el6+, where is newer python
Fix --verify-configuration-files help string to make its usage clearer.