File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1888,6 +1888,7 @@ if len(sys.argv) < 2:
18881888 sys .stderr .write ('\n * ' + sys .argv [0 ] + ' make-source-deb [--summary=file] [codename ...] [--skip-signing]\n ' )
18891889 sys .stderr .write (' ' + sys .argv [0 ] + ' build-deb [--summary=file] [codename ...] [--skip-signing] [--architecture=arch[,...]] [--twice]\n ' )
18901890 sys .stderr .write (' ' + sys .argv [0 ] + ' fetch-debian-changelog [codename]\n ' )
1891+ sys .stderr .write (' ' + sys .argv [0 ] + ' fetch-debian-control [codename]\n ' )
18911892 sys .stderr .write ('\n * ' + sys .argv [0 ] + ' make-source-rpm [--summary=file] [release ...] [--skip-signing]\n ' )
18921893 sys .stderr .write (' ' + sys .argv [0 ] + ' build-rpm [--summary=file] [release ...] [--skip-signing] [--architecture=[,...]]\n ' )
18931894 sys .exit (1 )
@@ -2021,6 +2022,19 @@ elif tool == 'fetch-debian-changelog':
20212022 for line in changelogContents :
20222023 sys .stdout .write (line )
20232024
2025+ # ====== Fetch Debian control file ==========================================
2026+ elif tool == 'fetch-debian-control' :
2027+ obtainDistributionCodenames ()
2028+ codename = 'unstable'
2029+ if len (sys .argv ) >= 3 :
2030+ codename = sys .argv [2 ]
2031+ changelogContents , controlContents = \
2032+ fetchDebianChangelogAndControl (packageInfo , codename )
2033+ if controlContents is not None :
2034+ sys .stdout .write ('\n ' )
2035+ for line in controlContents :
2036+ sys .stdout .write (line )
2037+
20242038# ====== Invalid tool =======================================================
20252039else :
20262040 sys .stderr .write ('ERROR: Invalid tool "' + tool + '"\n ' )
You can’t perform that action at this time.
0 commit comments