Skip to content

Commit

Permalink
Merge pull request #45 from mwestphall/feature/dont-update-3.5-repos
Browse files Browse the repository at this point in the history
Feature: Don't update OSG-3.5 Repos After Creation
  • Loading branch information
matyasselmeci authored Oct 4, 2023
2 parents a44b294 + 5066937 commit 93cba90
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
7 changes: 6 additions & 1 deletion bin/update_repo.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

OSGTAGS=/etc/osg-koji-tags/osg-tags

usage () {
echo "Usage: $(basename "$0") TAG"
Expand Down Expand Up @@ -48,6 +48,11 @@ reponame=$TAG
repo_working_path="$working_path/$reponame/$arch"
repo_working_srpm_path="$working_path/$reponame/source/SRPMS"

if test -d $release_path && grep -q $TAG $OSGTAGS.create-only ; then
echo "Tag $TAG is create-only and already exists. Skipping"
exit 0
fi

mkdir -p "$release_path" "$working_path" "$previous_path"
mash "$reponame" -o "$working_path" -p "$release_path"

Expand Down
18 changes: 18 additions & 0 deletions etc/osg-koji-tags/osg-tags.create-only
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
osg-3.5-el7-contrib
osg-3.5-el7-empty
osg-3.5-el7-release
osg-3.5-el7-rolling
osg-3.5-el7-testing
osg-3.5-el8-contrib
osg-3.5-el8-empty
osg-3.5-el8-release
osg-3.5-el8-rolling
osg-3.5-el8-testing
osg-3.5-upcoming-el7-development
osg-3.5-upcoming-el7-release
osg-3.5-upcoming-el7-rolling
osg-3.5-upcoming-el7-testing
osg-3.5-upcoming-el8-development
osg-3.5-upcoming-el8-release
osg-3.5-upcoming-el8-rolling
osg-3.5-upcoming-el8-testing
20 changes: 0 additions & 20 deletions etc/osg-koji-tags/osg-tags.exclude
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,3 @@ osg-3.4-el7-empty
osg-3.4-el7-release
osg-3.4-el7-rolling
osg-3.4-el7-testing
osg-3.5-el7-contrib
osg-3.5-el7-development
osg-3.5-el7-empty
osg-3.5-el7-release
osg-3.5-el7-rolling
osg-3.5-el7-testing
osg-3.5-el8-contrib
osg-3.5-el8-development
osg-3.5-el8-empty
osg-3.5-el8-release
osg-3.5-el8-rolling
osg-3.5-el8-testing
osg-3.5-upcoming-el7-development
osg-3.5-upcoming-el7-release
osg-3.5-upcoming-el7-rolling
osg-3.5-upcoming-el7-testing
osg-3.5-upcoming-el8-development
osg-3.5-upcoming-el8-release
osg-3.5-upcoming-el8-rolling
osg-3.5-upcoming-el8-testing

0 comments on commit 93cba90

Please sign in to comment.