diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-12-14 02:41:09 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-12-14 02:41:09 +0100 |
commit | 1976d1ca7da1443f325a085a91ef0c25bf8ef030 (patch) | |
tree | 9c158967499cd7c54e4e677f9a30810e0ba54dc0 | |
parent | aa9bfbf74e03c3499fa0e4ded749176f0de97a95 (diff) | |
download | buildscripts-1976d1ca7da1443f325a085a91ef0c25bf8ef030.tar.gz buildscripts-1976d1ca7da1443f325a085a91ef0c25bf8ef030.tar.bz2 buildscripts-1976d1ca7da1443f325a085a91ef0c25bf8ef030.zip |
switch CODENAME and COMPONENT around in RPM repo upload path
-rwxr-xr-x | bin/build-rpm-package | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package index 01d107b..410ad4c 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -273,17 +273,17 @@ upload_packages() { if [ "x$SKIP_ARCH" != "x$l_ARCH" ]; then # create remote directories in archive - 0</dev/null ssh $REPOS_SERVER mkdir -p $RPM_REPOS_BASE/$l_DIST/$COMPONENT/$l_CODENAME/$l_ARCH/rpms/$PROJECT - 0</dev/null ssh $REPOS_SERVER mkdir -p $RPM_REPOS_BASE/$l_DIST/$COMPONENT/$l_CODENAME/$l_ARCH/repodata + 0</dev/null ssh $REPOS_SERVER mkdir -p $RPM_REPOS_BASE/$l_DIST/$l_CODENAME/$COMPONENT/$l_ARCH/rpms/$PROJECT + 0</dev/null ssh $REPOS_SERVER mkdir -p $RPM_REPOS_BASE/$l_DIST/$l_CODENAME/$COMPONENT/$l_ARCH/repodata # remove rpm packages of the same name (pattern) - 0</dev/null ssh $REPOS_SERVER rm -f $RPM_REPOS_BASE/$l_DIST/$COMPONENT/$l_CODENAME/$l_ARCH/rpms/$PROJECT/*.rpm + 0</dev/null ssh $REPOS_SERVER rm -f $RPM_REPOS_BASE/$l_DIST/$l_CODENAME/$COMPONENT/$l_ARCH/rpms/$PROJECT/*.rpm # copy rpms into repo cd "$PKGDIST/$l_DIST/$l_CODENAME/$l_ARCH" - scp *.rpm $REPOS_SERVER:$RPM_REPOS_BASE/$l_DIST/$COMPONENT/$l_CODENAME/$l_ARCH/rpms/$PROJECT/ || true + scp *.rpm $REPOS_SERVER:$RPM_REPOS_BASE/$l_DIST/$l_CODENAME/$COMPONENT/$l_ARCH/rpms/$PROJECT/ || true - 0</dev/null ssh $REPOS_SERVER "cd $RPM_REPOS_BASE/$l_DIST/$COMPONENT/$l_CODENAME/$l_ARCH/ && createrepo ." + 0</dev/null ssh $REPOS_SERVER "cd $RPM_REPOS_BASE/$l_DIST/$l_CODENAME/$COMPONENT/$l_ARCH/ && createrepo ." fi done |