def getVersionDetailed(project):
    v = getVersion(project)
    p = getProjectMeta(project)
    if p['handler'] == 'bytags':
        d = getProjectDate(project)
    else:
        d = None

    logging.info(p)

    return (v, p, d)
Example #2
0
import subprocess
import gzip
import sys
import shutil
import tarfile
import zipfile
import os
import getversion

# Note: This script uses subprocess.Popen() in favor of subprocess.check_output(),
#       because the latter is not available in Python 2.4.


###################
# Some information
version = getversion.getVersion()
scriptDir = os.path.dirname(os.path.realpath(__file__))
delivDir = os.path.join(scriptDir, "deliv")
versionFileName = os.path.join(scriptDir, 'version')
prefix = 'agentxcpp-' + version + '/'


###################
# Check if the repo is clean.
# We consider the repo clean if no tracked files were changed
# and no files are in the git staging area. Ignored and untracked
# files are allowed.
clean = True
try:
    proc = subprocess.Popen(["git", "status", "--porcelain"],
            stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
Example #3
0
import subprocess
import gzip
import sys
import shutil
import tarfile
import zipfile
import os
import getversion

# Note: This script uses subprocess.Popen() in favor of subprocess.check_output(),
#       because the latter is not available in Python 2.4.

###################
# Some information
version = getversion.getVersion()
scriptDir = os.path.dirname(os.path.realpath(__file__))
delivDir = os.path.join(scriptDir, "deliv")
versionFileName = os.path.join(scriptDir, 'version')
prefix = 'agentxcpp-' + version + '/'

###################
# Check if the repo is clean.
# We consider the repo clean if no tracked files were changed
# and no files are in the git staging area. Ignored and untracked
# files are allowed.
clean = True
try:
    proc = subprocess.Popen(["git", "status", "--porcelain"],
                            stdout=subprocess.PIPE,
                            stderr=subprocess.STDOUT)