<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 18/06/19 16:07, Dennis Kliban wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAPmNiuqJ_h=szytukSa=qHA=C9C-Jj+bLcLn40TsnGm3pN6jvQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Tue, Jun 18, 2019 at 9:05
            AM Juan Cabrera <<a href="mailto:juan.cabrera@unamur.be"
              moz-do-not-send="true">juan.cabrera@unamur.be</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div bgcolor="#FFFFFF">
              <p>Hi all,</p>
              <p>Until now I was using the "One shot upload" to upload
                the packages.<br>
              </p>
              <p>If I understand correctly, with "One shot upload" it is
                not possible to add the same package to a different
                repository as a rise condition is set:<br>
              </p>
               if not created:<br>
              <p>        raise OSError('RPM package {} already
                exists.'.format(pkg.filename))</p>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div>This makes sense. Once an RPM is in Pulp, you should use
            the Repository Version Create API[0] to add it to another
            repository.<br>
          </div>
          <div><br>
          </div>
          <div>[0] <a
href="https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_create"
              moz-do-not-send="true">https://docs.pulpproject.org/en/3.0/nightly/restapi.html#operation/repositories_versions_create</a></div>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>Thanks Dennis, I will use this.</p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAPmNiuqJ_h=szytukSa=qHA=C9C-Jj+bLcLn40TsnGm3pN6jvQ@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_quote">
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div bgcolor="#FFFFFF">
              <p>So I try the long way. In this case I can upload the
                packages (artifacts) and create contents but there is a
                problem when I what to create a publication.</p>
            </div>
          </blockquote>
          <div>Please file an issue about this problem[1]. You should
            not be able to create a duplicate RPM package. It looks like
            Pulp 3 is not validating that all required fields are being
            supplied to the RPM create API[1].</div>
        </div>
      </div>
    </blockquote>
    <br>
    <p>I created the issue <a class="moz-txt-link-freetext" href="https://pulp.plan.io/issues/4987">https://pulp.plan.io/issues/4987</a></p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAPmNiuqJ_h=szytukSa=qHA=C9C-Jj+bLcLn40TsnGm3pN6jvQ@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_quote">
          <div><br>
          </div>
          <div>[1] <a
              href="https://pulp.plan.io/projects/pulp_rpm/issues/new"
              moz-do-not-send="true">https://pulp.plan.io/projects/pulp_rpm/issues/new</a></div>
          <div>[2] <a
href="https://pulp-rpm.readthedocs.io/en/latest/restapi.html#operation/content_rpm_packages_create"
              moz-do-not-send="true">https://pulp-rpm.readthedocs.io/en/latest/restapi.html#operation/content_rpm_packages_create</a></div>
          <div><br>
          </div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex"><br>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <div class="moz-signature">-- <br>
      <div style="font-family: Verdana, Helvetica, Arial, sans-serif;
        font-size: 8pt; font-weight: normal; color: #616365;"> <img
          src="cid:part5.A9D6FA8E.56D156FF@unamur.be" style="display:
          block; margin: 1em 0em;">
        <p style="margin: 1em;"> <span style="font-weight: bold;">Juan
            CABRERA</span><br>
          <span style="color: #69BE28;">Correspondant informatique</span><br>
          <span>Département de Mathématiques</span> </p>
        <p style="margin: 1em;">
          <span style="font-weight: bold;">T.</span> 081724919<br>
          <a style="color: #69BE28;"
            href="mailto:juan.cabrera@unamur.be">juan.cabrera@unamur.be</a><br>
          <a style="color: #69BE28;"
            href="http://staff.unamur.be/jbcabrer">http://staff.unamur.be/jbcabrer</a>
        </p>
        <p style="margin: 1em;"> <span style="font-weight: bold;
            font-size: 8pt;">Université de Namur ASBL</span><br>
          <span>Rue de Bruxelles 61 - 5000 Namur</span><br>
          <span>Belgique</span><br>
        </p>
        <p style="margin: 1em; font-size: 6pt; color: #69BE28;"> <span>Let’s
            respect the environment together.</span><br>
          <span style="font-weight: bold;">Only print this message if
            necessary!</span><br>
        </p>
      </div>
    </div>
  </body>
</html>