]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
sign-rpms: add 'project' argument
authorDan Mick <dan.mick@redhat.com>
Wed, 22 May 2024 20:31:21 +0000 (13:31 -0700)
committerDan Mick <dan.mick@redhat.com>
Wed, 22 May 2024 20:31:21 +0000 (13:31 -0700)
This allows signing ceph-iscsi packages

Signed-off-by: Dan Mick <dan.mick@redhat.com>
scripts/sign-rpms

index 4670de4e6feb27b07d156b6c220b029f904af68e..7f80636d3f6f3b48116103f48429648ed303f951 100755 (executable)
 
 keyid=460F3994
 
+function usage() {
+       echo "sign-rpms <project> [ release [ release ..]]"
+}
+
+if [[ $# -lt 1 ]] ; then usage ; exit 1 ; fi
+
+project=$1; shift
+
 if [ $# -eq 0 ]; then
   # Default releases if no arguments passed
   releases=( quincy reef squid )
@@ -43,9 +51,8 @@ echo
 for release in "${releases[@]}"; do
   for distro in  "${distros[@]}"; do
     for distro_version in  "${distro_versions[@]}"; do
-      for path in /opt/repos/ceph/$release*; do
+      for path in /opt/repos/$project/$release*; do
         if [ -d "$path/$distro/$distro_version" ]; then
-          #path="/opt/repos/ceph/$release/$distro/$distro_version"
           echo "Checking packages in: $path/$distro/$distro_version"
           update_repo=0
           cd $path/$distro/$distro_version