# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os import subprocess import sys from datetime import datetime
def get_info_from_sourcestamp(sourcestamp_path): """Read the repository and changelog information from the sourcestamp
file. This assumes that the file exists and returns the results as a list
(either strings orNonein case of error). """
# Load the content of the file.
lines = None with open(sourcestamp_path) as f:
lines = f.read().splitlines()
# Parse the repo and the changeset. The sourcestamp file is supposed to # contain two lines: the first is the build id and the second is the source # URL. if len(lines) != 2 ornot lines[1].startswith("http"): # Just return if the file doesn't contain what we expect. returnNone, None
# Return the repo and the changeset. return lines[1].split("/rev/")
def source_repo_header(output): # We allow the source repo and changeset to be specified via the # environment (see configure) import buildconfig
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.