Package: debbindiff
Version: 9
Severity: wishlist

When I compare two .changes files from different versions of the same
source package, I get a crash. I would like to use debbindiff before
doing uploads to ensure that the changes to the package are good. I
already use debdiff to check the debs but would like to use debbindiff.
Below are a list of commands that can be used to reproduce this issue.

I guess the cause is that the file lists between the two packages do not
match and the solution would be to compare the file lists and map the
different versions of the binary packages to each other.

pabs@chianamo ~ $ mkdir test-debbindiff
pabs@chianamo ~ $ cd test-debbindiff/
pabs@chianamo ~/test-debbindiff $ sudo apt-get build-dep mancala
pabs@chianamo ~/test-debbindiff $ mkdir 1 2
pabs@chianamo ~/test-debbindiff $ cd 1
pabs@chianamo ~/test-debbindiff/1 $ dget --build 
http://http.debian.net/debian/pool/main/m/mancala/mancala_1.0.1-4.dsc
pabs@chianamo ~/test-debbindiff/1 $ cd ../2
pabs@chianamo ~/test-debbindiff/2 $ dget --build 
http://http.debian.net/debian/pool/main/m/mancala/mancala_1.0.3-1.dsc
pabs@chianamo ~/test-debbindiff/2 $ cd ..
pabs@chianamo ~/test-debbindiff $ debbindiff --debug 
1/mancala_1.0.1-4_amd64.changes 2/mancala_1.0.3-1_amd64.changes
   DEBUG validating sha1 checksums
   DEBUG sha1 Checksum for file 
/home/pabs/test-debbindiff/1/mancala_1.0.1-4_amd64.deb matches
    INFO Not checking signature
   DEBUG validating sha1 checksums
   DEBUG sha1 Checksum for file 
/home/pabs/test-debbindiff/2/mancala_1.0.3-1_amd64.deb matches
    INFO Not checking signature
   DEBUG 
 2acfc15f7af55ebf5d0608150864de7d 15210 games extra mancala_1.0.1-4_amd64.deb
Traceback (most recent call last):
  File "/usr/bin/debbindiff", line 89, in <module>
    sys.exit(main())
  File "/usr/bin/debbindiff", line 75, in main
    parsed_args.file1, parsed_args.file2)
  File "/usr/lib/python2.7/dist-packages/debbindiff/comparators/__init__.py", 
line 119, in compare_files
    return comparator(path1, path2, source)
  File "/usr/lib/python2.7/dist-packages/debbindiff/comparators/changes.py", 
line 76, in compare_changes_files
    d2 = files2[filename]
KeyError: u'mancala_1.0.1-4_amd64.deb'

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (900, 'testing'), (890, 'buildd-testing-proposed-updates'), (800, 
'unstable'), (790, 'buildd-unstable'), (700, 'experimental'), (690, 
'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages debbindiff depends on:
ii  binutils-multiarch  2.25-5
ii  bzip2               1.0.6-7+b2
ii  cpio                2.11+dfsg-4
ii  diffutils           1:3.3-1+b1
ii  file                1:5.22+15-1
ii  fontforge-extras    0.3-4
ii  gettext             0.19.3-2
ii  ghc                 7.6.3-20
ii  gnupg               1.4.18-6
ii  pdftk               2.02-2
ii  poppler-utils       0.26.5-2
ii  python              2.7.8-3
ii  python-debian       0.1.25
ii  python-magic        1:5.22+15-1
ii  python-rpm          4.11.3-1.1
ii  rpm2cpio            4.11.3-1.1
ii  sng                 1.0.2-7
ii  unzip               6.0-16
ii  vim                 2:7.4.488-4
ii  vim-common          2:7.4.488-4
ii  xz-utils            5.1.1alpha+20120614-2+b3

debbindiff recommends no packages.

debbindiff suggests no packages.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to