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

[Git][ftp-team/dak][master] generate-index-diffs: rewind `oldf` before using it



Title: GitLab

Ansgar pushed to branch master at Debian FTP Team / dak

Commits:

1 changed file:

Changes:

  • dak/generate_index_diffs.py
    ... ... @@ -330,6 +330,7 @@ def genchanges(Options, outdir, oldfile, origfile, maxdiffs=56):
    330 330
             if not os.path.isdir(outdir):
    
    331 331
                 os.mkdir(outdir)
    
    332 332
     
    
    333
    +        oldf.seek(0)
    
    333 334
             with open("{}.gz".format(difffile), "wb") as fh:
    
    334 335
                 daklib.daksubprocess.check_call(
    
    335 336
                     "diff --ed - {} | gzip --rsyncable  --no-name -c -9".format(newfile), shell=True,
    


  • Reply to: