[Bug 1505128] Re: Output improvement

Jerome 1505128 at bugs.launchpad.net
Mon Oct 12 08:50:20 UTC 2015


The source I'm quoting is v2.2.

Of course, if asked for it, I'll submit the patch for latest version.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt-clone in Ubuntu.
https://bugs.launchpad.net/bugs/1505128

Title:
  Output improvement

Status in apt-clone package in Ubuntu:
  New

Bug description:
  Hi.

  When using apt-clone for the first time, the output can be misleading:

      apt-clone clone test.tar.gz
      not installable: 
      version mismatch: 
      Note that you can use --with-dpkg-repack to include those packges in the clone file.

  There is no need to write "not installable: " with an empty list. It
  leaves the user with a doubt.

  I checked the code to be sure this was normal output and it is:

  https://sources.debian.net/src/apt-clone/0.2.2/apt-clone/

          print "not installable: %s" % ", ".join(clone.not_downloadable)
          print "version mismatch: %s" % ", ".join(clone.version_mismatch)
          if not args.with_dpkg_repack:
              print "\nNote that you can use --with-dpkg-repack to include "\
                    "those packges in the clone file."

  It could be improved this way, for instance:

          if clone.not_downloadable:
                  print "not installable: %s" % ", ".join(clone.not_downloadable)
          if clone.version_mismatch:
                  print "version mismatch: %s" % ", ".join(clone.version_mismatch)
          if (clone.not_downloadable or clone.version_mismatch 
              and not args.with_dpkg_repack):
              print "\nNote that you can use --with-dpkg-repack to include "\
                    "those packges in the clone file."

  (I'm not totally sure about the conditions to test for the notice
  about dpkg-repack.)

  Shall I submit a patch? How?

  Thanks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-clone/+bug/1505128/+subscriptions



More information about the foundations-bugs mailing list