1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
Check for discrepancies in overrides between architectures
==========================================================
This script looks for out-of-sync overrides, checking for
discrepancies in overrides between architectures.
It should run daily via cronjob, sending the STDOUT result report via
email to distribution maintainers to ensure that only necessary
discrepancies are present during the development cycle.
See also:
https://launchpad.net/products/soyuz/+spec/overrides-consistency-check
https://wiki.ubuntu.com/MilestoneRhythm
XXX cprov 20060714: we need better populate archive/"publishing
history" in the sampledata to test those tools properly.
>>> import os
>>> import subprocess
>>> import sys
>>> from canonical.config import config
>>> script = os.path.join(
... config.root, "scripts", "ftpmaster-tools",
... "archive-override-check.py")
>>> process = subprocess.Popen(
... [sys.executable, script, "-v", "-d", "ubuntu", "-s", "warty"],
... stdout=subprocess.PIPE, stderr=subprocess.PIPE)
>>> stdout, stderr = process.communicate()
>>> process.returncode
0
>>> print stderr
INFO Creating lockfile: ...
DEBUG Considering: ubuntu/warty/RELEASE/CURRENT.
DEBUG ... published sources
DEBUG Rolling back any remaining transactions.
DEBUG Removing lock file: ...
<BLANKLINE>
Since its data is sane, empty STDOUT is okay.
>>> print stdout
|