1
= Check for discrepancies in overrides between architectures =
1
Check for discrepancies in overrides between architectures
2
==========================================================
3
4
This script looks for out-of-sync overrides, checking for
4
5
discrepancies in overrides between architectures.
14
15
XXX cprov 20060714: we need better populate archive/"publishing
15
16
history" in the sampledata to test those tools properly.
20
>>> from canonical.config import config
22
>>> script = os.path.join(config.root, "scripts", "ftpmaster-tools",
23
... "archive-override-check.py")
25
>>> process = subprocess.Popen([sys.executable, script, "-v",
28
... stdout=subprocess.PIPE,
29
... stderr=subprocess.PIPE,)
30
>>> stdout, stderr = process.communicate()
31
>>> process.returncode
34
INFO Creating lockfile: ...
35
DEBUG Considering: ubuntu/warty/RELEASE/CURRENT.
36
DEBUG ... published sources
37
DEBUG Rolling back any remaining transactions.
38
DEBUG Removing lock file: ...
21
>>> from canonical.config import config
23
>>> script = os.path.join(
24
... config.root, "scripts", "ftpmaster-tools",
25
... "archive-override-check.py")
27
>>> process = subprocess.Popen(
28
... [sys.executable, script, "-v", "-d", "ubuntu", "-s", "warty"],
29
... stdout=subprocess.PIPE, stderr=subprocess.PIPE)
30
>>> stdout, stderr = process.communicate()
31
>>> process.returncode
34
INFO Creating lockfile: ...
35
DEBUG Considering: ubuntu/warty/RELEASE/CURRENT.
36
DEBUG ... published sources
37
DEBUG Rolling back any remaining transactions.
38
DEBUG Removing lock file: ...
42
42
Since its data is sane, empty STDOUT is okay.