pkgs-stg: employ the dist-git package setup_git_package and mkbranch scripts
This commit is contained in:
parent
cc95cd79ab
commit
cc29d3ed65
3 changed files with 18 additions and 3 deletions
|
@ -141,7 +141,6 @@
|
||||||
- setup_git_package
|
- setup_git_package
|
||||||
- mkbranch
|
- mkbranch
|
||||||
- mkbranch_branching
|
- mkbranch_branching
|
||||||
- pkgdb2-clone
|
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- distgit
|
- distgit
|
||||||
|
@ -178,10 +177,11 @@
|
||||||
tags:
|
tags:
|
||||||
- distgit
|
- distgit
|
||||||
|
|
||||||
- name: install the pkgdb_sync_git_branches.py scripts
|
- name: install the pkgdb_sync_git_branches.py and pkgdb2-clone scripts
|
||||||
template: src={{item}} dest=/usr/local/bin/{{item}} owner=root group=root mode=0755
|
template: src={{item}} dest=/usr/local/bin/{{item}} owner=root group=root mode=0755
|
||||||
with_items:
|
with_items:
|
||||||
- pkgdb_sync_git_branches.py
|
- pkgdb_sync_git_branches.py
|
||||||
|
- pkgdb2-clone
|
||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
- distgit
|
- distgit
|
||||||
|
|
|
@ -13,6 +13,12 @@ NEW_EPEL_VERSION = '7'
|
||||||
NEW_EPEL_SOURCE_BRANCH = 'f19'
|
NEW_EPEL_SOURCE_BRANCH = 'f19'
|
||||||
RHEL_PKGS_PATH = '/var/lib/rhel/rhel' + NEW_EPEL_VERSION
|
RHEL_PKGS_PATH = '/var/lib/rhel/rhel' + NEW_EPEL_VERSION
|
||||||
|
|
||||||
|
{% if env == 'staging' -%}
|
||||||
|
MKBRANCH = '/usr/share/dist-git/mkbranch'
|
||||||
|
{%- else -%}
|
||||||
|
MKBRANCH = '/usr/local/bin/mkbranch'
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
# parse_page :: String -> IO (Map String String)
|
# parse_page :: String -> IO (Map String String)
|
||||||
# This returns a dictionary of {"pkg_name": "branch"}
|
# This returns a dictionary of {"pkg_name": "branch"}
|
||||||
def parse_page(url):
|
def parse_page(url):
|
||||||
|
@ -140,7 +146,7 @@ def main(args):
|
||||||
"name, " + src_branchname + " -> " + dest_branchname
|
"name, " + src_branchname + " -> " + dest_branchname
|
||||||
else:
|
else:
|
||||||
if process_package(pkgdb, key, src_branchname, dest_branchname):
|
if process_package(pkgdb, key, src_branchname, dest_branchname):
|
||||||
subprocess.call(["mkbranch",
|
subprocess.call([MKBRANCH,
|
||||||
"-s",
|
"-s",
|
||||||
NEW_EPEL_SOURCE_BRANCH,
|
NEW_EPEL_SOURCE_BRANCH,
|
||||||
"epel" + NEW_EPEL_VERSION,
|
"epel" + NEW_EPEL_VERSION,
|
|
@ -70,8 +70,17 @@ PKGDB_URL = 'https://admin.fedoraproject.org/pkgdb'
|
||||||
|
|
||||||
GIT_FOLDER = '/srv/git/repositories/'
|
GIT_FOLDER = '/srv/git/repositories/'
|
||||||
|
|
||||||
|
{% if env == 'staging' -%}
|
||||||
|
MKBRANCH = '/usr/share/dist-git/mkbranch'
|
||||||
|
{%- else -%}
|
||||||
MKBRANCH = '/usr/local/bin/mkbranch'
|
MKBRANCH = '/usr/local/bin/mkbranch'
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
|
{% if env == 'staging' -%}
|
||||||
|
SETUP_PACKAGE = '/usr/share/dist-git/setup_git_package'
|
||||||
|
{%- else -%}
|
||||||
SETUP_PACKAGE = '/usr/local/bin/setup_git_package'
|
SETUP_PACKAGE = '/usr/local/bin/setup_git_package'
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
THREADS = 20
|
THREADS = 20
|
||||||
VERBOSE = False
|
VERBOSE = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue