Commit f36fe995 authored by Gibbs, Ian's avatar Gibbs, Ian
Browse files

add comments for checking existence of duplicate rpms

parent 965f25d7
Loading
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -334,7 +334,7 @@ job_publish_release:
    # Add the new key(s) to known_hosts
    - ssh-keyscan -t rsa packages.sns.gov >> ~/.ssh/known_hosts
    - ssh xv6@packages.sns.gov "ls -la; pwd"
    # Verify destination paths exist on packages.sns.gov
    # Verify destination directories exist on packages.sns.gov
    - ssh xv6@packages.sns.gov "test -d /var/www/html/distros/rhel/9/sns/RPMS/noarch"
    - ssh xv6@packages.sns.gov "test -d /var/www/html/distros/rhel/9/sns/SRPMS"
    - test $(ls -1 ./rpmbuild/RPMS/noarch/ | wc -l) -eq 1
@@ -343,6 +343,7 @@ job_publish_release:
    - read -r fn_srpm <<< $(ls -1 ./rpmbuild/SRPMS/)
    - echo ${fn_rpm}
    - echo ${fn_srpm}
    # Verify that we're not overwriting existing rpms with the same name
    - |
      if ssh xv6@packages.sns.gov "test -f /var/www/html/distros/rhel/9/sns/RPMS/noarch/${fn_rpm}"; then
        echo .
@@ -352,7 +353,6 @@ job_publish_release:
        echo .
        exit 1
      fi

    - |
      if ssh xv6@packages.sns.gov "test -f /var/www/html/distros/rhel/9/sns/SRPMS/${fn_srpm}"; then
        echo .