~whosdaz/wajig/docfix

« back to all changes in this revision

Viewing changes to src/debfile-deps.py

  • Committer: Package Import Robot
  • Author(s): Tshepang Lekhonkhobe
  • Date: 2014-10-23 23:25:38 UTC
  • Revision ID: package-import@ubuntu.com-20141023232538-291ry9rfqfl5z4c0
Tags: 2.17
* AUTO-ALTS, UPDATE_ALTERNATIVES: update update-alternatives binary
  location (/usr/sbin -> /usr/bin);
  this has since been changed in a 2013-07-26 dpkg upload, which could
  mean no one uses these subcommands :(
* WHICHPACKAGE: update --help description
* CHANGELOG: avoid an exception that occurs when piping the output to
  a pager, and then quitting without reading all of that output
* MOVE: check if apt-move is installed before trying to use it
* Bash completion was broken in 2.16; so careless!
* A whole bunch of code clean-up, largely assisted by Pylint

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
    if unauthenticated:
17
17
        # me not know what should happen here
18
18
        # awaiting bug report :)
19
 
        print ("The following are UNAUTHENTICATED: ", end="")
 
19
        print("The following are UNAUTHENTICATED: ", end="")
20
20
        for package_name in unauthenticated:
21
21
            print(package_name + " ", end=" ")
22
22
        print()
23
23
 
24
24
    if remove:
25
 
        print ("{} {}, the following is to be REMOVED: ".format(
26
 
                prefix, debfile.pkgname), end="")
 
25
        message = "{} {}, the following is to be REMOVED: "
 
26
        print(message.format(prefix, debfile.pkgname), end="")
27
27
        for package_name in remove:
28
28
            print(package_name + " ", end=" ")
29
29
        print()
30
30
 
31
31
    if install:
32
 
        print ("{} {}, the following is to be INSTALLED: ".format(
33
 
                prefix, debfile.pkgname), end="")
 
32
        message = "{} {}, the following is to be INSTALLED: "
 
33
        print(message.format(prefix, debfile.pkgname), end="")
34
34
        for package_name in install:
35
35
            print(package_name, end=" ")
36
36
        print()