Merge ~chad.smith/ubuntu/+source/update-notifier:ua-motd-bionic into ubuntu/+source/update-notifier:ubuntu/bionic-proposed

Proposed by Chad Smith
Status: Needs review
Proposed branch: ~chad.smith/ubuntu/+source/update-notifier:ua-motd-bionic
Merge into: ubuntu/+source/update-notifier:ubuntu/bionic-proposed
Diff against target: 729 lines (+204/-182) (has conflicts)
8 files modified
INSTALL (+159/-161)
config.h.in (+8/-0)
data/apt_check.py (+11/-10)
data/hooks.py (+1/-1)
data/package-data-downloader (+2/-2)
debian/changelog (+15/-0)
tests/test_package-data-downloader.py (+7/-7)
tests/test_pep8.py (+1/-1)
Conflict in debian/changelog
Reviewer Review Type Date Requested Status
Brian Murray Pending
Review via email: mp+392487@code.launchpad.net

Description of the change

Cherry-picks to sort FTSBFS and missed cherry-pick for motd wording on package updates.

git cherry-pick 6794d0f3d50770599e451f7bdfdae610d3ad4be8 # data/apt_check.py, data/package-data-downloader, tests/test_pep8.py:

git cherry-pick af28cd4d6 # motd wording

git cherry-pick f881447e2fc755b3fad49a57b0a6d8904a61df88 # Fix E117 over-indented pep issues.

To post a comment you must log in.

Unmerged commits

433be1a... by Gianfranco Costamagna

Fix E117 over-indented pep issues.

1eedf60... by Julian Andres Klode

apt-check: Update wording to match spec

2d7ed67... by Andrea Azzarone

* data/apt_check.py, data/package-data-downloader, tests/test_pep8.py:
  - update the code formating to be not hit W504 warnings,
    change to ignore W503 and be consistent with update-manager.

5e8cdcf... by Chad Smith

changelog

131011b... by Julian Andres Klode

Fix multiple disabled ESM repositories being counted as enabled ones.

e4b340a... by Brian Murray

data/apt_check.py: modify wording and output regarding ESM support.
(LP: #1842508)

7a72a66... by Andreas Hasenack

  * data/apt_check.py: Update ESM security pockets names (LP: #1881632)
    - the UbuntuESM pocket was renamed from <distro>-security to
      <distro>-infra-security
    - new origin UbuntuESMApps, with a corresponding pocket of
      <distro>-apps-security

Patch from
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1881632/comments/1

14b2284... by Julian Andres Klode

We told people ESM is not enabled, but not how to enable it.

LP: #1822340

abaf607... by Julian Andres Klode

apt-check: Tell people to enable ESM if ESM updates are available

6f97e28... by Julian Andres Klode

apt-check: Count enabled ESM upgrades

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/INSTALL b/INSTALL
index 2099840..8865734 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,8 +1,8 @@
1Installation Instructions1Installation Instructions
2*************************2*************************
33
4Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,4 Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software
5Inc.5Foundation, Inc.
66
7 Copying and distribution of this file, with or without modification,7 Copying and distribution of this file, with or without modification,
8are permitted in any medium without royalty provided the copyright8are permitted in any medium without royalty provided the copyright
@@ -12,97 +12,96 @@ without warranty of any kind.
12Basic Installation12Basic Installation
13==================13==================
1414
15 Briefly, the shell command `./configure && make && make install'15 Briefly, the shell command './configure && make && make install'
16should configure, build, and install this package. The following16should configure, build, and install this package. The following
17more-detailed instructions are generic; see the `README' file for17more-detailed instructions are generic; see the 'README' file for
18instructions specific to this package. Some packages provide this18instructions specific to this package. Some packages provide this
19`INSTALL' file but do not implement all of the features documented19'INSTALL' file but do not implement all of the features documented
20below. The lack of an optional feature in a given package is not20below. The lack of an optional feature in a given package is not
21necessarily a bug. More recommendations for GNU packages can be found21necessarily a bug. More recommendations for GNU packages can be found
22in *note Makefile Conventions: (standards)Makefile Conventions.22in *note Makefile Conventions: (standards)Makefile Conventions.
2323
24 The `configure' shell script attempts to guess correct values for24 The 'configure' shell script attempts to guess correct values for
25various system-dependent variables used during compilation. It uses25various system-dependent variables used during compilation. It uses
26those values to create a `Makefile' in each directory of the package.26those values to create a 'Makefile' in each directory of the package.
27It may also create one or more `.h' files containing system-dependent27It may also create one or more '.h' files containing system-dependent
28definitions. Finally, it creates a shell script `config.status' that28definitions. Finally, it creates a shell script 'config.status' that
29you can run in the future to recreate the current configuration, and a29you can run in the future to recreate the current configuration, and a
30file `config.log' containing compiler output (useful mainly for30file 'config.log' containing compiler output (useful mainly for
31debugging `configure').31debugging 'configure').
3232
33 It can also use an optional file (typically called `config.cache'33 It can also use an optional file (typically called 'config.cache' and
34and enabled with `--cache-file=config.cache' or simply `-C') that saves34enabled with '--cache-file=config.cache' or simply '-C') that saves the
35the results of its tests to speed up reconfiguring. Caching is35results of its tests to speed up reconfiguring. Caching is disabled by
36disabled by default to prevent problems with accidental use of stale36default to prevent problems with accidental use of stale cache files.
37cache files.
3837
39 If you need to do unusual things to compile the package, please try38 If you need to do unusual things to compile the package, please try
40to figure out how `configure' could check whether to do them, and mail39to figure out how 'configure' could check whether to do them, and mail
41diffs or instructions to the address given in the `README' so they can40diffs or instructions to the address given in the 'README' so they can
42be considered for the next release. If you are using the cache, and at41be considered for the next release. If you are using the cache, and at
43some point `config.cache' contains results you don't want to keep, you42some point 'config.cache' contains results you don't want to keep, you
44may remove or edit it.43may remove or edit it.
4544
46 The file `configure.ac' (or `configure.in') is used to create45 The file 'configure.ac' (or 'configure.in') is used to create
47`configure' by a program called `autoconf'. You need `configure.ac' if46'configure' by a program called 'autoconf'. You need 'configure.ac' if
48you want to change it or regenerate `configure' using a newer version47you want to change it or regenerate 'configure' using a newer version of
49of `autoconf'.48'autoconf'.
5049
51 The simplest way to compile this package is:50 The simplest way to compile this package is:
5251
53 1. `cd' to the directory containing the package's source code and type52 1. 'cd' to the directory containing the package's source code and type
54 `./configure' to configure the package for your system.53 './configure' to configure the package for your system.
5554
56 Running `configure' might take a while. While running, it prints55 Running 'configure' might take a while. While running, it prints
57 some messages telling which features it is checking for.56 some messages telling which features it is checking for.
5857
59 2. Type `make' to compile the package.58 2. Type 'make' to compile the package.
6059
61 3. Optionally, type `make check' to run any self-tests that come with60 3. Optionally, type 'make check' to run any self-tests that come with
62 the package, generally using the just-built uninstalled binaries.61 the package, generally using the just-built uninstalled binaries.
6362
64 4. Type `make install' to install the programs and any data files and63 4. Type 'make install' to install the programs and any data files and
65 documentation. When installing into a prefix owned by root, it is64 documentation. When installing into a prefix owned by root, it is
66 recommended that the package be configured and built as a regular65 recommended that the package be configured and built as a regular
67 user, and only the `make install' phase executed with root66 user, and only the 'make install' phase executed with root
68 privileges.67 privileges.
6968
70 5. Optionally, type `make installcheck' to repeat any self-tests, but69 5. Optionally, type 'make installcheck' to repeat any self-tests, but
71 this time using the binaries in their final installed location.70 this time using the binaries in their final installed location.
72 This target does not install anything. Running this target as a71 This target does not install anything. Running this target as a
73 regular user, particularly if the prior `make install' required72 regular user, particularly if the prior 'make install' required
74 root privileges, verifies that the installation completed73 root privileges, verifies that the installation completed
75 correctly.74 correctly.
7675
77 6. You can remove the program binaries and object files from the76 6. You can remove the program binaries and object files from the
78 source code directory by typing `make clean'. To also remove the77 source code directory by typing 'make clean'. To also remove the
79 files that `configure' created (so you can compile the package for78 files that 'configure' created (so you can compile the package for
80 a different kind of computer), type `make distclean'. There is79 a different kind of computer), type 'make distclean'. There is
81 also a `make maintainer-clean' target, but that is intended mainly80 also a 'make maintainer-clean' target, but that is intended mainly
82 for the package's developers. If you use it, you may have to get81 for the package's developers. If you use it, you may have to get
83 all sorts of other programs in order to regenerate files that came82 all sorts of other programs in order to regenerate files that came
84 with the distribution.83 with the distribution.
8584
86 7. Often, you can also type `make uninstall' to remove the installed85 7. Often, you can also type 'make uninstall' to remove the installed
87 files again. In practice, not all packages have tested that86 files again. In practice, not all packages have tested that
88 uninstallation works correctly, even though it is required by the87 uninstallation works correctly, even though it is required by the
89 GNU Coding Standards.88 GNU Coding Standards.
9089
91 8. Some packages, particularly those that use Automake, provide `make90 8. Some packages, particularly those that use Automake, provide 'make
92 distcheck', which can by used by developers to test that all other91 distcheck', which can by used by developers to test that all other
93 targets like `make install' and `make uninstall' work correctly.92 targets like 'make install' and 'make uninstall' work correctly.
94 This target is generally not run by end users.93 This target is generally not run by end users.
9594
96Compilers and Options95Compilers and Options
97=====================96=====================
9897
99 Some systems require unusual options for compilation or linking that98 Some systems require unusual options for compilation or linking that
100the `configure' script does not know about. Run `./configure --help'99the 'configure' script does not know about. Run './configure --help'
101for details on some of the pertinent environment variables.100for details on some of the pertinent environment variables.
102101
103 You can give `configure' initial values for configuration parameters102 You can give 'configure' initial values for configuration parameters
104by setting variables in the command line or in the environment. Here103by setting variables in the command line or in the environment. Here is
105is an example:104an example:
106105
107 ./configure CC=c99 CFLAGS=-g LIBS=-lposix106 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
108107
@@ -113,21 +112,21 @@ Compiling For Multiple Architectures
113112
114 You can compile the package for more than one kind of computer at the113 You can compile the package for more than one kind of computer at the
115same time, by placing the object files for each architecture in their114same time, by placing the object files for each architecture in their
116own directory. To do this, you can use GNU `make'. `cd' to the115own directory. To do this, you can use GNU 'make'. 'cd' to the
117directory where you want the object files and executables to go and run116directory where you want the object files and executables to go and run
118the `configure' script. `configure' automatically checks for the117the 'configure' script. 'configure' automatically checks for the source
119source code in the directory that `configure' is in and in `..'. This118code in the directory that 'configure' is in and in '..'. This is known
120is known as a "VPATH" build.119as a "VPATH" build.
121120
122 With a non-GNU `make', it is safer to compile the package for one121 With a non-GNU 'make', it is safer to compile the package for one
123architecture at a time in the source code directory. After you have122architecture at a time in the source code directory. After you have
124installed the package for one architecture, use `make distclean' before123installed the package for one architecture, use 'make distclean' before
125reconfiguring for another architecture.124reconfiguring for another architecture.
126125
127 On MacOS X 10.5 and later systems, you can create libraries and126 On MacOS X 10.5 and later systems, you can create libraries and
128executables that work on multiple system types--known as "fat" or127executables that work on multiple system types--known as "fat" or
129"universal" binaries--by specifying multiple `-arch' options to the128"universal" binaries--by specifying multiple '-arch' options to the
130compiler but only a single `-arch' option to the preprocessor. Like129compiler but only a single '-arch' option to the preprocessor. Like
131this:130this:
132131
133 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \132 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
@@ -136,105 +135,104 @@ this:
136135
137 This is not guaranteed to produce working output in all cases, you136 This is not guaranteed to produce working output in all cases, you
138may have to build one architecture at a time and combine the results137may have to build one architecture at a time and combine the results
139using the `lipo' tool if you have problems.138using the 'lipo' tool if you have problems.
140139
141Installation Names140Installation Names
142==================141==================
143142
144 By default, `make install' installs the package's commands under143 By default, 'make install' installs the package's commands under
145`/usr/local/bin', include files under `/usr/local/include', etc. You144'/usr/local/bin', include files under '/usr/local/include', etc. You
146can specify an installation prefix other than `/usr/local' by giving145can specify an installation prefix other than '/usr/local' by giving
147`configure' the option `--prefix=PREFIX', where PREFIX must be an146'configure' the option '--prefix=PREFIX', where PREFIX must be an
148absolute file name.147absolute file name.
149148
150 You can specify separate installation prefixes for149 You can specify separate installation prefixes for
151architecture-specific files and architecture-independent files. If you150architecture-specific files and architecture-independent files. If you
152pass the option `--exec-prefix=PREFIX' to `configure', the package uses151pass the option '--exec-prefix=PREFIX' to 'configure', the package uses
153PREFIX as the prefix for installing programs and libraries.152PREFIX as the prefix for installing programs and libraries.
154Documentation and other data files still use the regular prefix.153Documentation and other data files still use the regular prefix.
155154
156 In addition, if you use an unusual directory layout you can give155 In addition, if you use an unusual directory layout you can give
157options like `--bindir=DIR' to specify different values for particular156options like '--bindir=DIR' to specify different values for particular
158kinds of files. Run `configure --help' for a list of the directories157kinds of files. Run 'configure --help' for a list of the directories
159you can set and what kinds of files go in them. In general, the158you can set and what kinds of files go in them. In general, the default
160default for these options is expressed in terms of `${prefix}', so that159for these options is expressed in terms of '${prefix}', so that
161specifying just `--prefix' will affect all of the other directory160specifying just '--prefix' will affect all of the other directory
162specifications that were not explicitly provided.161specifications that were not explicitly provided.
163162
164 The most portable way to affect installation locations is to pass the163 The most portable way to affect installation locations is to pass the
165correct locations to `configure'; however, many packages provide one or164correct locations to 'configure'; however, many packages provide one or
166both of the following shortcuts of passing variable assignments to the165both of the following shortcuts of passing variable assignments to the
167`make install' command line to change installation locations without166'make install' command line to change installation locations without
168having to reconfigure or recompile.167having to reconfigure or recompile.
169168
170 The first method involves providing an override variable for each169 The first method involves providing an override variable for each
171affected directory. For example, `make install170affected directory. For example, 'make install
172prefix=/alternate/directory' will choose an alternate location for all171prefix=/alternate/directory' will choose an alternate location for all
173directory configuration variables that were expressed in terms of172directory configuration variables that were expressed in terms of
174`${prefix}'. Any directories that were specified during `configure',173'${prefix}'. Any directories that were specified during 'configure',
175but not in terms of `${prefix}', must each be overridden at install174but not in terms of '${prefix}', must each be overridden at install time
176time for the entire installation to be relocated. The approach of175for the entire installation to be relocated. The approach of makefile
177makefile variable overrides for each directory variable is required by176variable overrides for each directory variable is required by the GNU
178the GNU Coding Standards, and ideally causes no recompilation.177Coding Standards, and ideally causes no recompilation. However, some
179However, some platforms have known limitations with the semantics of178platforms have known limitations with the semantics of shared libraries
180shared libraries that end up requiring recompilation when using this179that end up requiring recompilation when using this method, particularly
181method, particularly noticeable in packages that use GNU Libtool.180noticeable in packages that use GNU Libtool.
182181
183 The second method involves providing the `DESTDIR' variable. For182 The second method involves providing the 'DESTDIR' variable. For
184example, `make install DESTDIR=/alternate/directory' will prepend183example, 'make install DESTDIR=/alternate/directory' will prepend
185`/alternate/directory' before all installation names. The approach of184'/alternate/directory' before all installation names. The approach of
186`DESTDIR' overrides is not required by the GNU Coding Standards, and185'DESTDIR' overrides is not required by the GNU Coding Standards, and
187does not work on platforms that have drive letters. On the other hand,186does not work on platforms that have drive letters. On the other hand,
188it does better at avoiding recompilation issues, and works well even187it does better at avoiding recompilation issues, and works well even
189when some directory options were not specified in terms of `${prefix}'188when some directory options were not specified in terms of '${prefix}'
190at `configure' time.189at 'configure' time.
191190
192Optional Features191Optional Features
193=================192=================
194193
195 If the package supports it, you can cause programs to be installed194 If the package supports it, you can cause programs to be installed
196with an extra prefix or suffix on their names by giving `configure' the195with an extra prefix or suffix on their names by giving 'configure' the
197option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.196option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'.
198197
199 Some packages pay attention to `--enable-FEATURE' options to198 Some packages pay attention to '--enable-FEATURE' options to
200`configure', where FEATURE indicates an optional part of the package.199'configure', where FEATURE indicates an optional part of the package.
201They may also pay attention to `--with-PACKAGE' options, where PACKAGE200They may also pay attention to '--with-PACKAGE' options, where PACKAGE
202is something like `gnu-as' or `x' (for the X Window System). The201is something like 'gnu-as' or 'x' (for the X Window System). The
203`README' should mention any `--enable-' and `--with-' options that the202'README' should mention any '--enable-' and '--with-' options that the
204package recognizes.203package recognizes.
205204
206 For packages that use the X Window System, `configure' can usually205 For packages that use the X Window System, 'configure' can usually
207find the X include and library files automatically, but if it doesn't,206find the X include and library files automatically, but if it doesn't,
208you can use the `configure' options `--x-includes=DIR' and207you can use the 'configure' options '--x-includes=DIR' and
209`--x-libraries=DIR' to specify their locations.208'--x-libraries=DIR' to specify their locations.
210209
211 Some packages offer the ability to configure how verbose the210 Some packages offer the ability to configure how verbose the
212execution of `make' will be. For these packages, running `./configure211execution of 'make' will be. For these packages, running './configure
213--enable-silent-rules' sets the default to minimal output, which can be212--enable-silent-rules' sets the default to minimal output, which can be
214overridden with `make V=1'; while running `./configure213overridden with 'make V=1'; while running './configure
215--disable-silent-rules' sets the default to verbose, which can be214--disable-silent-rules' sets the default to verbose, which can be
216overridden with `make V=0'.215overridden with 'make V=0'.
217216
218Particular systems217Particular systems
219==================218==================
220219
221 On HP-UX, the default C compiler is not ANSI C compatible. If GNU220 On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC
222CC is not installed, it is recommended to use the following options in221is not installed, it is recommended to use the following options in
223order to use an ANSI C compiler:222order to use an ANSI C compiler:
224223
225 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"224 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
226225
227and if that doesn't work, install pre-built binaries of GCC for HP-UX.226and if that doesn't work, install pre-built binaries of GCC for HP-UX.
228227
229 HP-UX `make' updates targets which have the same time stamps as228 HP-UX 'make' updates targets which have the same time stamps as their
230their prerequisites, which makes it generally unusable when shipped229prerequisites, which makes it generally unusable when shipped generated
231generated files such as `configure' are involved. Use GNU `make'230files such as 'configure' are involved. Use GNU 'make' instead.
232instead.
233231
234 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot232 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
235parse its `<wchar.h>' header file. The option `-nodtk' can be used as233parse its '<wchar.h>' header file. The option '-nodtk' can be used as a
236a workaround. If GNU CC is not installed, it is therefore recommended234workaround. If GNU CC is not installed, it is therefore recommended to
237to try235try
238236
239 ./configure CC="cc"237 ./configure CC="cc"
240238
@@ -242,26 +240,26 @@ and if that doesn't work, try
242240
243 ./configure CC="cc -nodtk"241 ./configure CC="cc -nodtk"
244242
245 On Solaris, don't put `/usr/ucb' early in your `PATH'. This243 On Solaris, don't put '/usr/ucb' early in your 'PATH'. This
246directory contains several dysfunctional programs; working variants of244directory contains several dysfunctional programs; working variants of
247these programs are available in `/usr/bin'. So, if you need `/usr/ucb'245these programs are available in '/usr/bin'. So, if you need '/usr/ucb'
248in your `PATH', put it _after_ `/usr/bin'.246in your 'PATH', put it _after_ '/usr/bin'.
249247
250 On Haiku, software installed for all users goes in `/boot/common',248 On Haiku, software installed for all users goes in '/boot/common',
251not `/usr/local'. It is recommended to use the following options:249not '/usr/local'. It is recommended to use the following options:
252250
253 ./configure --prefix=/boot/common251 ./configure --prefix=/boot/common
254252
255Specifying the System Type253Specifying the System Type
256==========================254==========================
257255
258 There may be some features `configure' cannot figure out256 There may be some features 'configure' cannot figure out
259automatically, but needs to determine by the type of machine the package257automatically, but needs to determine by the type of machine the package
260will run on. Usually, assuming the package is built to be run on the258will run on. Usually, assuming the package is built to be run on the
261_same_ architectures, `configure' can figure that out, but if it prints259_same_ architectures, 'configure' can figure that out, but if it prints
262a message saying it cannot guess the machine type, give it the260a message saying it cannot guess the machine type, give it the
263`--build=TYPE' option. TYPE can either be a short name for the system261'--build=TYPE' option. TYPE can either be a short name for the system
264type, such as `sun4', or a canonical name which has the form:262type, such as 'sun4', or a canonical name which has the form:
265263
266 CPU-COMPANY-SYSTEM264 CPU-COMPANY-SYSTEM
267265
@@ -270,101 +268,101 @@ where SYSTEM can have one of these forms:
270 OS268 OS
271 KERNEL-OS269 KERNEL-OS
272270
273 See the file `config.sub' for the possible values of each field. If271 See the file 'config.sub' for the possible values of each field. If
274`config.sub' isn't included in this package, then this package doesn't272'config.sub' isn't included in this package, then this package doesn't
275need to know the machine type.273need to know the machine type.
276274
277 If you are _building_ compiler tools for cross-compiling, you should275 If you are _building_ compiler tools for cross-compiling, you should
278use the option `--target=TYPE' to select the type of system they will276use the option '--target=TYPE' to select the type of system they will
279produce code for.277produce code for.
280278
281 If you want to _use_ a cross compiler, that generates code for a279 If you want to _use_ a cross compiler, that generates code for a
282platform different from the build platform, you should specify the280platform different from the build platform, you should specify the
283"host" platform (i.e., that on which the generated programs will281"host" platform (i.e., that on which the generated programs will
284eventually be run) with `--host=TYPE'.282eventually be run) with '--host=TYPE'.
285283
286Sharing Defaults284Sharing Defaults
287================285================
288286
289 If you want to set default values for `configure' scripts to share,287 If you want to set default values for 'configure' scripts to share,
290you can create a site shell script called `config.site' that gives288you can create a site shell script called 'config.site' that gives
291default values for variables like `CC', `cache_file', and `prefix'.289default values for variables like 'CC', 'cache_file', and 'prefix'.
292`configure' looks for `PREFIX/share/config.site' if it exists, then290'configure' looks for 'PREFIX/share/config.site' if it exists, then
293`PREFIX/etc/config.site' if it exists. Or, you can set the291'PREFIX/etc/config.site' if it exists. Or, you can set the
294`CONFIG_SITE' environment variable to the location of the site script.292'CONFIG_SITE' environment variable to the location of the site script.
295A warning: not all `configure' scripts look for a site script.293A warning: not all 'configure' scripts look for a site script.
296294
297Defining Variables295Defining Variables
298==================296==================
299297
300 Variables not defined in a site shell script can be set in the298 Variables not defined in a site shell script can be set in the
301environment passed to `configure'. However, some packages may run299environment passed to 'configure'. However, some packages may run
302configure again during the build, and the customized values of these300configure again during the build, and the customized values of these
303variables may be lost. In order to avoid this problem, you should set301variables may be lost. In order to avoid this problem, you should set
304them in the `configure' command line, using `VAR=value'. For example:302them in the 'configure' command line, using 'VAR=value'. For example:
305303
306 ./configure CC=/usr/local2/bin/gcc304 ./configure CC=/usr/local2/bin/gcc
307305
308causes the specified `gcc' to be used as the C compiler (unless it is306causes the specified 'gcc' to be used as the C compiler (unless it is
309overridden in the site shell script).307overridden in the site shell script).
310308
311Unfortunately, this technique does not work for `CONFIG_SHELL' due to309Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an
312an Autoconf limitation. Until the limitation is lifted, you can use310Autoconf limitation. Until the limitation is lifted, you can use this
313this workaround:311workaround:
314312
315 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash313 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
316314
317`configure' Invocation315'configure' Invocation
318======================316======================
319317
320 `configure' recognizes the following options to control how it318 'configure' recognizes the following options to control how it
321operates.319operates.
322320
323`--help'321'--help'
324`-h'322'-h'
325 Print a summary of all of the options to `configure', and exit.323 Print a summary of all of the options to 'configure', and exit.
326324
327`--help=short'325'--help=short'
328`--help=recursive'326'--help=recursive'
329 Print a summary of the options unique to this package's327 Print a summary of the options unique to this package's
330 `configure', and exit. The `short' variant lists options used328 'configure', and exit. The 'short' variant lists options used only
331 only in the top level, while the `recursive' variant lists options329 in the top level, while the 'recursive' variant lists options also
332 also present in any nested packages.330 present in any nested packages.
333331
334`--version'332'--version'
335`-V'333'-V'
336 Print the version of Autoconf used to generate the `configure'334 Print the version of Autoconf used to generate the 'configure'
337 script, and exit.335 script, and exit.
338336
339`--cache-file=FILE'337'--cache-file=FILE'
340 Enable the cache: use and save the results of the tests in FILE,338 Enable the cache: use and save the results of the tests in FILE,
341 traditionally `config.cache'. FILE defaults to `/dev/null' to339 traditionally 'config.cache'. FILE defaults to '/dev/null' to
342 disable caching.340 disable caching.
343341
344`--config-cache'342'--config-cache'
345`-C'343'-C'
346 Alias for `--cache-file=config.cache'.344 Alias for '--cache-file=config.cache'.
347345
348`--quiet'346'--quiet'
349`--silent'347'--silent'
350`-q'348'-q'
351 Do not print messages saying which checks are being made. To349 Do not print messages saying which checks are being made. To
352 suppress all normal output, redirect it to `/dev/null' (any error350 suppress all normal output, redirect it to '/dev/null' (any error
353 messages will still be shown).351 messages will still be shown).
354352
355`--srcdir=DIR'353'--srcdir=DIR'
356 Look for the package's source code in directory DIR. Usually354 Look for the package's source code in directory DIR. Usually
357 `configure' can determine that directory automatically.355 'configure' can determine that directory automatically.
358356
359`--prefix=DIR'357'--prefix=DIR'
360 Use DIR as the installation prefix. *note Installation Names::358 Use DIR as the installation prefix. *note Installation Names:: for
361 for more details, including other options available for fine-tuning359 more details, including other options available for fine-tuning the
362 the installation locations.360 installation locations.
363361
364`--no-create'362'--no-create'
365`-n'363'-n'
366 Run the configure checks, but stop before creating any output364 Run the configure checks, but stop before creating any output
367 files.365 files.
368366
369`configure' also accepts some other, not widely useful, options. Run367'configure' also accepts some other, not widely useful, options. Run
370`configure --help' for more details.368'configure --help' for more details.
diff --git a/config.h.in b/config.h.in
index bcdf201..fb9979f 100644
--- a/config.h.in
+++ b/config.h.in
@@ -15,6 +15,14 @@
15/* Define to 1 if you have the `bind_textdomain_codeset' function. */15/* Define to 1 if you have the `bind_textdomain_codeset' function. */
16#undef HAVE_BIND_TEXTDOMAIN_CODESET16#undef HAVE_BIND_TEXTDOMAIN_CODESET
1717
18/* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the
19 CoreFoundation framework. */
20#undef HAVE_CFLOCALECOPYCURRENT
21
22/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in
23 the CoreFoundation framework. */
24#undef HAVE_CFPREFERENCESCOPYAPPVALUE
25
18/* Define to 1 if you have the `dcgettext' function. */26/* Define to 1 if you have the `dcgettext' function. */
19#undef HAVE_DCGETTEXT27#undef HAVE_DCGETTEXT
2028
diff --git a/data/apt_check.py b/data/apt_check.py
index 6bb716f..ed729c9 100755
--- a/data/apt_check.py
+++ b/data/apt_check.py
@@ -68,8 +68,8 @@ def isESMUpgrade(ver):
6868
69def write_package_names(outstream, cache, depcache):69def write_package_names(outstream, cache, depcache):
70 " write out package names that change to outstream "70 " write out package names that change to outstream "
71 pkgs = [pkg for pkg in cache.packages if depcache.marked_install(pkg) or71 pkgs = [pkg for pkg in cache.packages if depcache.marked_install(pkg)
72 depcache.marked_upgrade(pkg)]72 or depcache.marked_upgrade(pkg)]
73 outstream.write("\n".join([p.name for p in pkgs]))73 outstream.write("\n".join([p.name for p in pkgs]))
7474
7575
@@ -90,8 +90,10 @@ def write_human_readable_summary(outstream, upgrades, security_updates,
90 outstream.write("\n\n")90 outstream.write("\n\n")
9191
92 outstream.write(gettext.dngettext("update-notifier",92 outstream.write(gettext.dngettext("update-notifier",
93 "%i package can be updated.",93 "%i update can be installed "
94 "%i packages can be updated.",94 "immediately.",
95 "%i updates can be installed "
96 "immediately.",
95 upgrades) % upgrades)97 upgrades) % upgrades)
96 outstream.write("\n")98 outstream.write("\n")
97 if esm_updates > 0:99 if esm_updates > 0:
@@ -228,8 +230,8 @@ def run(options=None):
228 disabled_esm_updates += 1230 disabled_esm_updates += 1
229231
230 # skip packages that are not marked upgraded/installed232 # skip packages that are not marked upgraded/installed
231 if not (depcache.marked_install(pkg) or233 if not (depcache.marked_install(pkg)
232 depcache.marked_upgrade(pkg)):234 or depcache.marked_upgrade(pkg)):
233 continue235 continue
234 # check if this is really a upgrade or a false positive236 # check if this is really a upgrade or a false positive
235 # (workaround for ubuntu #7907)237 # (workaround for ubuntu #7907)
@@ -262,10 +264,9 @@ def run(options=None):
262 # now check for security updates that are masked by a264 # now check for security updates that are masked by a
263 # candidate version from another repo (-proposed or -updates)265 # candidate version from another repo (-proposed or -updates)
264 for ver in pkg.version_list:266 for ver in pkg.version_list:
265 if (inst_ver and apt_pkg.version_compare(ver.ver_str,267 if (inst_ver
266 inst_ver.ver_str) <=268 and apt_pkg.version_compare(ver.ver_str,
267 0):269 inst_ver.ver_str) <= 0):
268 # print("skipping '%s' " % ver.VerStr)
269 continue270 continue
270 if isESMUpgrade(ver):271 if isESMUpgrade(ver):
271 esm_updates += 1272 esm_updates += 1
diff --git a/data/hooks.py b/data/hooks.py
index 5585e33..034852c 100755
--- a/data/hooks.py
+++ b/data/hooks.py
@@ -75,7 +75,7 @@ class HookFiles(object):
75 # we last saw it75 # we last saw it
76 h = self._hooks[hook]76 h = self._hooks[hook]
77 if os.stat(self.hookDir + hook).st_mtime > int(h.mtime):77 if os.stat(self.hookDir + hook).st_mtime > int(h.mtime):
78 h.seen = False78 h.seen = False
79 else:79 else:
80 self._hooks[hook] = self.HookFile(hook)80 self._hooks[hook] = self.HookFile(hook)
8181
diff --git a/data/package-data-downloader b/data/package-data-downloader
index f7d8566..00b4aff 100755
--- a/data/package-data-downloader
+++ b/data/package-data-downloader
@@ -160,8 +160,8 @@ def get_hook_file_names():
160 res = []160 res = []
161 for relfile in os.listdir(DATADIR):161 for relfile in os.listdir(DATADIR):
162 # ignore files ending in .dpkg-*162 # ignore files ending in .dpkg-*
163 if (os.path.splitext(relfile)[1] and163 if (os.path.splitext(relfile)[1]
164 os.path.splitext(relfile)[1].startswith(".dpkg")):164 and os.path.splitext(relfile)[1].startswith(".dpkg")):
165 continue165 continue
166 res.append(relfile)166 res.append(relfile)
167 return res167 return res
diff --git a/debian/changelog b/debian/changelog
index b688483..6f198c7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,18 @@
1<<<<<<< debian/changelog
2=======
3update-notifier (3.192.1.9) bionic; urgency=medium
4
5 [ Gianfranco Costamagna ]
6 * Fix E117 over-indented pep issues.
7
8 [ Andrea Azzarone ]
9 * data/apt_check.py, data/package-data-downloader, tests/test_pep8.py:
10 - update the code formating to be not hit W504 warnings,
11 change to ignore W503 and be consistent with update-manager.
12
13 -- Chad Smith <chad.smith@canonical.com> Tue, 16 Oct 2020 15:35:29 -0600
14
15>>>>>>> debian/changelog
1update-notifier (3.192.1.8) bionic; urgency=medium16update-notifier (3.192.1.8) bionic; urgency=medium
217
3 [ Andreas Hasenack ]18 [ Andreas Hasenack ]
diff --git a/tests/test_package-data-downloader.py b/tests/test_package-data-downloader.py
index 8680d4c..9c7e53c 100644
--- a/tests/test_package-data-downloader.py
+++ b/tests/test_package-data-downloader.py
@@ -123,7 +123,7 @@ class ProcessDownloadRequestsTestCase(unittest.TestCase):
123 stampfile = os.path.join(package_data_downloader.STAMPDIR,123 stampfile = os.path.join(package_data_downloader.STAMPDIR,
124 hookfile)124 hookfile)
125 with open(stampfile, "w"):125 with open(stampfile, "w"):
126 pass126 pass
127 orig_stamp_time = os.stat(stampfile).st_mtime127 orig_stamp_time = os.stat(stampfile).st_mtime
128 package_data_downloader.process_download_requests()128 package_data_downloader.process_download_requests()
129 new_stamp_time = os.stat(stampfile).st_mtime129 new_stamp_time = os.stat(stampfile).st_mtime
@@ -141,7 +141,7 @@ class ProcessDownloadRequestsTestCase(unittest.TestCase):
141 stampfile = os.path.join(package_data_downloader.STAMPDIR,141 stampfile = os.path.join(package_data_downloader.STAMPDIR,
142 hookfile)142 hookfile)
143 with open(stampfile, "w"):143 with open(stampfile, "w"):
144 pass144 pass
145 orig_stamp_date = os.stat(stampfile).st_mtime145 orig_stamp_date = os.stat(stampfile).st_mtime
146 time.sleep(0.01)146 time.sleep(0.01)
147 # create the hook file147 # create the hook file
@@ -191,7 +191,7 @@ class ProcessDownloadRequestsTestCase(unittest.TestCase):
191 stampfile = os.path.join(package_data_downloader.STAMPDIR,191 stampfile = os.path.join(package_data_downloader.STAMPDIR,
192 hookfile)192 hookfile)
193 with open(stampfile, "w"):193 with open(stampfile, "w"):
194 pass194 pass
195 time.sleep(0.01)195 time.sleep(0.01)
196 # create the hook file196 # create the hook file
197 self._setup_hook_file(hookfile, "/bin/false")197 self._setup_hook_file(hookfile, "/bin/false")
@@ -207,7 +207,7 @@ class ProcessDownloadRequestsTestCase(unittest.TestCase):
207 stampfile = os.path.join(package_data_downloader.STAMPDIR,207 stampfile = os.path.join(package_data_downloader.STAMPDIR,
208 hookfile)208 hookfile)
209 with open(stampfile, "w"):209 with open(stampfile, "w"):
210 pass210 pass
211 time.sleep(0.01)211 time.sleep(0.01)
212 self._setup_hook_file(hookfile)212 self._setup_hook_file(hookfile)
213 # create an empty notifier file213 # create an empty notifier file
@@ -222,7 +222,7 @@ class ProcessDownloadRequestsTestCase(unittest.TestCase):
222 stampfile = os.path.join(package_data_downloader.STAMPDIR,222 stampfile = os.path.join(package_data_downloader.STAMPDIR,
223 hookfile)223 hookfile)
224 with open(stampfile, "w"):224 with open(stampfile, "w"):
225 pass225 pass
226 time.sleep(0.01)226 time.sleep(0.01)
227 self._setup_hook_file(hookfile)227 self._setup_hook_file(hookfile)
228 # create empty notifier files228 # create empty notifier files
@@ -241,7 +241,7 @@ class ProcessDownloadRequestsTestCase(unittest.TestCase):
241 stampfile = os.path.join(package_data_downloader.STAMPDIR,241 stampfile = os.path.join(package_data_downloader.STAMPDIR,
242 hookfile)242 hookfile)
243 with open(stampfile, "w"):243 with open(stampfile, "w"):
244 pass244 pass
245 time.sleep(0.01)245 time.sleep(0.01)
246 self._setup_hook_file(hookfile)246 self._setup_hook_file(hookfile)
247 # create an empty permanent notifier file247 # create an empty permanent notifier file
@@ -257,7 +257,7 @@ class ProcessDownloadRequestsTestCase(unittest.TestCase):
257 stampfile = os.path.join(package_data_downloader.STAMPDIR,257 stampfile = os.path.join(package_data_downloader.STAMPDIR,
258 hookfile)258 hookfile)
259 with open(stampfile, "w"):259 with open(stampfile, "w"):
260 pass260 pass
261 time.sleep(0.01)261 time.sleep(0.01)
262 # overwrite canary file to create a failure262 # overwrite canary file to create a failure
263 self.canary_file = "not-there.txt"263 self.canary_file = "not-there.txt"
diff --git a/tests/test_pep8.py b/tests/test_pep8.py
index fa6c416..96f68c0 100644
--- a/tests/test_pep8.py
+++ b/tests/test_pep8.py
@@ -6,7 +6,7 @@ import subprocess
6import unittest6import unittest
77
8# pep8 is overdoing it a bit IMO8# pep8 is overdoing it a bit IMO
9IGNORE_PEP8 = "E265"9IGNORE_PEP8 = "E265, W503"
10IGNORE_FILES = (10IGNORE_FILES = (
11)11)
1212

Subscribers

People subscribed via source and target branches