Beispiel #1
0
 def create_tests(self):
     utils.create_dir("debian/tests")
     args = {}
     args['name'] = self.name
     args['debian_name'] = self.debian_name
     control = utils.get_template('tests/control') % args
     utils.create_debian_file("tests/control", control)
     require = utils.get_template("tests/require") % args
     utils.create_debian_file("tests/require", require)
Beispiel #2
0
 def create_tests(self):
     utils.create_dir("debian/tests")
     args = {}
     args['name'] = self.name
     args['debian_name'] = self.debian_name
     control = utils.get_template('tests/control') % args
     utils.create_debian_file("tests/control", control)
     require = utils.get_template("tests/require") % args
     utils.create_debian_file("tests/require", require)
Beispiel #3
0
 def create_upstream_metadata(self):
     args = {}
     args['url'] = _re.sub(r'^git\+', '', self.upstream_repo_url)
     args['module'] = self.name
     if self.upstream_repo_url.find('github') >= 0:
         content = utils.get_upstream_metadata('github') % args
         utils.create_dir("debian/upstream")
         utils.create_debian_file('upstream/metadata', content)
     elif self.upstream_repo_url.find('gitlab') >= 0:
         content = utils.get_upstream_metadata('gitlab') % args
         utils.create_dir("debian/upstream")
         utils.create_debian_file('upstream/metadata', content)
Beispiel #4
0
 def create_upstream_metadata(self):
     args = {}
     args['url'] = _re.sub(r'^git\+', '', self.upstream_repo_url)
     args['module'] = self.name
     if self.upstream_repo_url.find('github') >= 0:
         content = utils.get_upstream_metadata('github') % args
         utils.create_dir("debian/upstream")
         utils.create_debian_file('upstream/metadata', content)
     elif self.upstream_repo_url.find('gitlab') >= 0:
         content = utils.get_upstream_metadata('gitlab') % args
         utils.create_dir("debian/upstream")
         utils.create_debian_file('upstream/metadata', content)
Beispiel #5
0
def create(args):
    npm2deb = get_npm2deb_instance(args)
    try:
        saved_path = _os.getcwd()
        _utils.create_dir(npm2deb.name)
        _utils.change_dir(npm2deb.name)
        npm2deb.start()
        _utils.change_dir(npm2deb.debian_name)
        npm2deb.initiate_build(saved_path)

    except OSError as os_error:
        print(str(os_error))
        exit(1)

    _show_mapper_warnings()
Beispiel #6
0
def create(args):
    npm2deb = get_npm2deb_instance(args)
    try:
        saved_path = _os.getcwd()
        _utils.create_dir(npm2deb.name)
        _utils.change_dir(npm2deb.name)
        npm2deb.start()
        _utils.change_dir(npm2deb.debian_name)
        npm2deb.initiate_build(saved_path)

    except OSError as os_error:
        print(str(os_error))
        exit(1)

    _show_mapper_warnings()
Beispiel #7
0
def create(args):
    npm2deb = get_npm2deb_instance(args)
    try:
        saved_path = os.getcwd()
        utils.create_dir(npm2deb.name)
        utils.change_dir(npm2deb.name)
        npm2deb.start()
        utils.change_dir(saved_path)
    except OSError as os_error:
        print(str(os_error))
        exit(1)

    debian_path = "%s/%s/debian" % (npm2deb.name, npm2deb.debian_name)

    print("""
This is not a crystal ball, so please take a look at auto-generated files.\n
You may want fix first these issues:\n""")
    call('/bin/grep --color=auto FIX_ME -r %s/*' % debian_path, shell=True)
    print("\nUse uscan to get orig source files. Fix debian/watch and then run\
            \n$ uscan --download-current-version\n")

    _show_mapper_warnings()
Beispiel #8
0
def create(args):
    npm2deb = get_npm2deb_instance(args)
    try:
        saved_path = os.getcwd()
        utils.create_dir(npm2deb.name)
        utils.change_dir(npm2deb.name)
        npm2deb.start()
        utils.change_dir(saved_path)
    except OSError as os_error:
        print(str(os_error))
        exit(1)

    debian_path = "%s/%s/debian" % (npm2deb.name, npm2deb.debian_name)

    print("""
This is not a crystal ball, so please take a look at auto-generated files.\n
You may want fix first these issues:\n""")
    call('/bin/grep --color=auto FIX_ME -r %s/*' % debian_path, shell=True)
    print ("\nUse uscan to get orig source files. Fix debian/watch and then run\
            \n$ uscan --download-current-version\n")

    _show_mapper_warnings()
Beispiel #9
0
 def create_base_debian(self):
     utils.debug(1, "creating debian files")
     utils.create_dir("debian")
     utils.create_dir("debian/source")
     utils.create_debian_file("source/format", "3.0 (quilt)\n")
Beispiel #10
0
 def create_tests(self):
     utils.create_dir("debian/tests/pkg-js")
     args = {}
     args['name'] = self.name
     args['debian_name'] = self.debian_name
Beispiel #11
0
 def create_base_debian(self):
     utils.debug(1, "creating debian files")
     utils.create_dir("debian")
     utils.create_dir("debian/source")
     utils.create_debian_file("source/format", "3.0 (quilt)\n")
     utils.create_debian_file("compat", self.debian_debhelper)
Beispiel #12
0
 def create_tests(self):
     utils.create_dir("debian/tests/pkg-js")
     args = {}
     args['name'] = self.name
     args['debian_name'] = self.debian_name