diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-12-08 01:06:11 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2013-12-08 01:06:11 +0100 |
commit | eaf982183ba0fffd7646e7d079a9f897e1de1fc7 (patch) | |
tree | 1b10bc1060c1738387fbd75ab0e6134b2980a9ec | |
parent | a57ffffa0ceb7caff76280c9d423287bf97c7bb0 (diff) | |
download | buildscripts-eaf982183ba0fffd7646e7d079a9f897e1de1fc7.tar.gz buildscripts-eaf982183ba0fffd7646e7d079a9f897e1de1fc7.tar.bz2 buildscripts-eaf982183ba0fffd7646e7d079a9f897e1de1fc7.zip |
change RPM archive structure once more
-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 f7741fd..c370460 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -255,17 +255,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/$PROJECT/$l_ARCH/rpms - 0</dev/null ssh $REPOS_SERVER mkdir -p $RPM_REPOS_BASE/$l_DIST/$COMPONENT/$l_CODENAME/$PROJECT/$l_ARCH/repodata + 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 # remove rpm packages of the same name (pattern) - 0</dev/null ssh $REPOS_SERVER rm -f $RPM_REPOS_BASE/$l_DIST/$COMPONENT/$l_CODENAME/$PROJECT/$l_ARCH/rpms/$PROJECT.*.rpm + 0</dev/null ssh $REPOS_SERVER rm -f $RPM_REPOS_BASE/$l_DIST/$COMPONENT/$l_CODENAME/$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/$PROJECT/$l_ARCH/rpms/ || true + scp *.rpm $REPOS_SERVER:$RPM_REPOS_BASE/$l_DIST/$COMPONENT/$l_CODENAME/$PROJECT/$l_ARCH/rpms/$PROJECT/ || true - 0</dev/null ssh $REPOS_SERVER "cd $RPM_REPOS_BASE/$l_DIST/$COMPONENT/$l_CODENAME/$PROJECT/$l_ARCH/ && createrepo ." + 0</dev/null ssh $REPOS_SERVER "cd $RPM_REPOS_BASE/$l_DIST/$COMPONENT/$l_CODENAME/$l_ARCH/ && createrepo ." fi done |