diff options
author | Erich Eckner <git@eckner.net> | 2020-06-19 11:34:13 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-06-19 11:34:13 +0200 |
commit | 57c7b8e14f161b086f15a879e571617c69372b97 (patch) | |
tree | c0d5fa9d1ba611708d62bbfafd8b786f890c4097 | |
parent | 6a2d24ea3bf41978726df64791aa7a6306b953e7 (diff) | |
download | devops-57c7b8e14f161b086f15a879e571617c69372b97.tar.xz |
update-archlinux32-package: find correct config also for linux-olpc-xo1
-rwxr-xr-x | update-archlinux32-package | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/update-archlinux32-package b/update-archlinux32-package index f2bb6fe..b2b0523 100755 --- a/update-archlinux32-package +++ b/update-archlinux32-package @@ -346,7 +346,11 @@ case ${update_path} in update_checksum case "${pkgname}" in - 'linux-pae') + 'linux-olpc-xo1'|'linux-pae') + config_name=$( + ls "${git_repo_path}/${repo}/${pkgname}" \ + | grep '^config' + ) scp "${git_repo_path}/${repo}/${pkgname}/PKGBUILD" 'arch32-test:'"${pkgname}/" ssh arch32-test ' cd '"${pkgname}"' @@ -358,8 +362,8 @@ case ${update_path} in cp src/linux-'"${new_pkgver}"'/.config config ' update_checksum - scp 'arch32-test:'"${pkgname}"'/config' "${git_repo_path}/${repo}/${pkgname}/" - git -C "${git_repo_path}/${repo}/${pkgname}" add 'PKGBUILD' 'config' + scp 'arch32-test:'"${pkgname}"'/config' "${git_repo_path}/${repo}/${pkgname}/${config_name}" + git -C "${git_repo_path}/${repo}/${pkgname}" add 'PKGBUILD' "${config_name}" ;; *) >&2 printf 'Whoops, I thought %s should be updated as %s, but I don'"'"'t know the details.\n' \ |