~fredg/twadeb

f6f56d7e9516bfea4c6663169afaca4cee61da2a — alienus 10 years ago b6832e2
reverse dpkg.log files to well format concatenation
1 files changed, 4 insertions(+), 3 deletions(-)

M twadeb.py
M twadeb.py => twadeb.py +4 -3
@@ 33,13 33,14 @@ def dpkgFiles(alldpkg):
    listFiles = glob.glob(alldpkg)
    sortFiles = sorted(listFiles)
    for l in sortFiles:
        # reverse files to well format files concatenation
        if l.endswith(".gz"):
            with gzip.open(l, 'rt') as s:
                for li in s:
                for li in reversed(list(s)):
                    fout.write(li)
        else :
        else:
            with open(l, 'r') as s:
                for li in s:
                for li in reversed(list(s)):
                    fout.write(li)