class GbpAutoGenerateError(GbpError):
+ """Error for tarball and patch-generation failures"""
pass
def makedir(dir):
+ """Create directory"""
output_dir = os.path.abspath(dir)
try:
def is_native(repo, options):
+ """Determine whether a package is native or non-native"""
if repo.has_branch(options.upstream_branch):
return False
return True
def parse_args(argv, prefix, git_treeish=None):
+ """Parse config and command line arguments"""
args = [ arg for arg in argv[1:] if arg.find('--%s' % prefix) == 0 ]
builder_args = [ arg for arg in argv[1:] if arg.find('--%s' % prefix) == -1 ]
def main(argv):
+ """Entry point for git-buildpackage-rpm"""
retval = 0
prefix = "git-"
spec = None