Thanks a lot for thorough testing.

On Wed, 2011-05-04 at 22:40 +0100, Reuben Thomas wrote: 
> On 4 May 2011 07:34, Reuben Thomas <r...@sc3d.org> wrote:
> > On 4 May 2011 01:06, Tshepang Lekhonkhobe <tshep...@gmail.com> wrote:
> >>
> >> I have used python-apt to implement this and would appreciate testing
> >> before upload to Debian, so please update your clone and report back
> >> any issues.
> >
> > Fantastic stuff. I have installed it, now I just need to wait until I
> > next install a 3rd-party .deb.
> 
> OK, I got a chance to try this, and it didn't work that well. I will
> show some transcripts, first with gdebi:
> 
> $ sudo gdebi reportbug_5.1.1_all.deb python-reportbug_5.1.1_all.deb
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Building data structures... Done
> Building data structures... Done
> This package is uninstallable
> Dependency is not satisfiable: python-reportbug (= 5.1.1)
> $ sudo gdebi python-reportbug_5.1.1_all.deb
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Building data structures... Done
> Building data structures... Done
> This package is uninstallable
> Breaks existing package 'reportbug' dependency python-reportbug (=
> 4.12.6ubuntu1)
> 
> [Then I removed the two packages]
> 
> $ sudo gdebi python-reportbug_5.1.1_all.deb
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Building data structures... Done
> Building data structures... Done
> 
> 
> Python modules for interacting with bug tracking systems
>  reportbug is a tool designed to make the reporting of bugs in Debian
>  and derived distributions relatively painless.
>  .
>  This package includes Python modules which may be reusable by other
>  tools that want to interact with the Debian bug tracking system.
>  .
>  To actually report a bug, install the reportbug package.
> Do you want to install the software package? [y/N]:y
> (Reading database ... 340981 files and directories currently installed.)
> Preparing to replace python-reportbug 4.12.6ubuntu1 (using
> python-reportbug_5.1.1_all.deb) ...
> Unpacking replacement python-reportbug ...
> Setting up python-reportbug (5.1.1) ...
> Processing triggers for python-support ...
> 
> $ sudo gdebi reportbug_5.1.1_all.deb
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Building data structures... Done
> Building data structures... Done
> 
> 
> reports bugs in the Debian distribution
>  reportbug is a tool designed to make the reporting of bugs in Debian
>  and derived distributions relatively painless.  Its features include:
>  .
>   * Integration with mutt and mh/nmh mail readers.
>   * Access to outstanding bug reports to make it easier to identify
>     whether problems have already been reported.
>   * Automatic checking for newer versions of packages.
>   * Optional automatic verification of integrity of packages via debsums.
>   * Support for following-up on outstanding reports.
>   * Optional PGP/GnuPG integration.
>  .
>  reportbug is designed to be used on systems with an installed mail
>  transport agent, like exim or sendmail; however, you can edit the
>  configuration file and send reports using any available mail server.
>  .
>  This package also includes the "querybts" script for browsing the
>  Debian bug tracking system.
> Do you want to install the software package? [y/N]:y
> Selecting previously deselected package reportbug.
> (Reading database ... 340981 files and directories currently installed.)
> Unpacking reportbug (from reportbug_5.1.1_all.deb) ...
> Setting up reportbug (5.1.1) ...
> Installing new version of config file /etc/reportbug.conf ...
> Processing triggers for man-db ...
> Processing triggers for menu ...
> Processing triggers for bamfdaemon ...
> Rebuilding /usr/share/applications/bamf.index...
> Processing triggers for desktop-file-utils ...
> Processing triggers for python-gmenu ...
> Rebuilding /usr/share/applications/desktop.en_GB.utf8.cache...
> Processing triggers for python-support ...
> 
> Then I removed the packages and tried again with wajig install. The
> first problem was that bash completion refused to complete the .deb

Ever since I remember, file auto-completion never worked:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597721

> files. When I typed the names in full, I got the following result:
> 
> $ wajig install reportbug_5.1.1_all.deb
> Do you want to continue [Y/n]?
> Fetched 0 B in 0s (0 B/s)
> Selecting previously deselected package reportbug.
> (Reading database ... 340954 files and directories currently installed.)
> Unpacking reportbug (from reportbug_5.1.1_all.deb) ...
> dpkg: dependency problems prevent configuration of reportbug:
>  reportbug depends on python-reportbug (= 5.1.1); however:
>   Package python-reportbug is not installed.
> dpkg: error processing reportbug (--install):
>  dependency problems - leaving unconfigured
> Processing triggers for man-db ...
> Processing triggers for menu ...
> Processing triggers for bamfdaemon ...
> Rebuilding /usr/share/applications/bamf.index...
> Processing triggers for desktop-file-utils ...
> Processing triggers for python-gmenu ...
> Rebuilding /usr/share/applications/desktop.en_GB.utf8.cache...
> Processing triggers for python-support ...
> Errors were encountered while processing:
>  reportbug
> 
> There are two things wrong here: first, it didn't display the package
> description, and secondly, it didn't refuse to install the package.
> 
> So then I tried anyway to install the other package:
> 
> $ wajig install python-reportbug_5.1.1_all.deb
> Do you want to continue [Y/n]?
> Fetched 0 B in 0s (0 B/s)
> dpkg: dependency problems prevent configuration of reportbug:
>  reportbug depends on python-reportbug (= 5.1.1); however:
>   Package python-reportbug is not installed.
> dpkg: error processing reportbug (--configure):
>  dependency problems - leaving unconfigured
> No apport report written because MaxReports is reached already
>                                                               Errors
> were encountered while processing:
>  reportbug
> Traceback (most recent call last):
>   File "/usr/share/wajig/debfile.py", line 53, in <module>
>     cache.commit(apt.progress.text.AcquireProgress())
>   File "/usr/lib/python3/dist-packages/apt/cache.py", line 440, in commit
>     raise SystemError("installArchives() failed")
> SystemError: installArchives() failed
> 
> I was hoping it would configure python-reportbug and the result would
> be good, but no such luck.
> 
> I then tried installing in the correct order.
> 
> $ wajig install python-reportbug_5.1.1_all.deb
> Do you want to continue [Y/n]?
> Fetched 0 B in 0s (0 B/s)
> Selecting previously deselected package python-reportbug.
> (Reading database ... 340953 files and directories currently installed.)
> Unpacking python-reportbug (from python-reportbug_5.1.1_all.deb) ...
> Setting up python-reportbug (5.1.1) ...
> Processing triggers for python-support ...
> $ wajig install reportbug_5.1.1_all.deb
> Do you want to continue [Y/n]?
> Fetched 0 B in 0s (0 B/s)
> Selecting previously deselected package reportbug.
> (Reading database ... 340980 files and directories currently installed.)
> Unpacking reportbug (from reportbug_5.1.1_all.deb) ...
> Setting up reportbug (5.1.1) ...
> Processing triggers for man-db ...
> Processing triggers for menu ...
> Processing triggers for bamfdaemon ...
> Rebuilding /usr/share/applications/bamf.index...
> Processing triggers for desktop-file-utils ...
> Processing triggers for python-gmenu ...
> Rebuilding /usr/share/applications/desktop.en_GB.utf8.cache...
> Processing triggers for python-support ...
> 
> So although I didn't get the package description, it did basically
> work. However, as you can see, gdebi handles the not-working situation
> much more gracefully than wajig.
> 
> Is it really not a good idea simply to delegate to gdebi?

As your first example demonstrates, it's not good to use gdebi (unless I
contribute code there).

Anyways, please update and test again. Try harmer it again, and tell me
how it was like (I fixed all your issues, except I think displaying
changelog is overkill).






-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to