<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 4, 2019 at 10:08 AM Bin Li (BLOOMBERG/ 120 PARK) <<a href="mailto:bli111@bloomberg.net">bli111@bloomberg.net</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><div style="white-space:pre-wrap;font-size:small;font-family:"Courier New",Courier,"BB.FixedWidth"">We are planning to sync all repos everyday and would prefer the version doesn't increment if repo content are the same. Just wondering how we can compare the remote content with pulp repo content so we run sync only if the remote content is changed?<br><br></div></div></blockquote><div><br></div><div>The only way to know if the content changed in the remote repository is to check the metadata. This is what Pulp does during a sync. We decided to always increment the repository version so that it will be clear to the user that Pulp performed a sync operation. The user can then examine the repository version and see what content was added or removed. If nothing was added or removed, then nothing changed in the remote repository. Does that kind of check work for you? How does this affect your workflow?<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"><div><div style="white-space:pre-wrap;font-size:small;font-family:"Courier New",Courier,"BB.FixedWidth"">Thanks<br><div style="font-size:small;font-family:"Courier New",Courier,"BB.FixedWidth""><div><div><div>From: <a href="mailto:daviddavis@redhat.com" target="_blank">daviddavis@redhat.com</a> At: 10/24/19 05:47:56</div>To: <a href="mailto:bli111@bloomberg.net" target="_blank"> Bin Li (BLOOMBERG/ 120 PARK ) </a><br>Cc: <a href="mailto:pulp-list@redhat.com" target="_blank"> pulp-list@redhat.com</a><br>Subject: Re: [Pulp-list] pulp3 repository version keep increasing</div><br></div><div style="background:white none repeat scroll 0% 0%;color:black;font-family:Arial,"BB.Proportional";font-size:small;white-space:normal"><div><blockquote><div dir="ltr">This is an expected behavior. See <a href="https://pulp.plan.io/issues/3308" target="_blank">https://pulp.plan.io/issues/3308</a>. Feel free to comment with any thoughts you have.<br><div><div dir="ltr"><div dir="ltr"><div><br></div><div>David<br></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 23, 2019 at 8:58 PM Bin Li (BLOOMBERG/ 120 PARK) <<a href="mailto:bli111@bloomberg.net" target="_blank">bli111@bloomberg.net</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 style="font-size:small;font-family:"Courier New",Courier,"BB.FixedWidth";white-space:pre-wrap">Any idea why repository version keep increasing even nothing was updated in the repo? I synced the repo from the same remote repo which always has the same content. The repo version increment every times I run sync. Below is output from version href. It shows nothing was added to repo and the total number of packages is the same. <div><br></div><div><br></div><div><br></div><div><br></div><div>  "results": [<div>        {</div><div>            "base_version": null, </div><div>            "content_summary": {</div><div>                "added": {}, </div><div>                "present": {</div><div>                    "rpm.package": {</div><div>                        "count": 819, </div><div>                        "href": "/pulp/api/v3/content/rpm/packages/?repository_version=/pulp/api/v3/repositories/7f1bc351-a1bd-4bf7-b7ee-0fc9fca592c7/versions/4/"</div><div>                    }</div><div>                }, </div><div>                "removed": {}</div><div>            }, </div><div>            "number": 4, </div><div>            "pulp_created": "2019-10-23T18:16:31.331868Z", </div><div>            "pulp_href": "/pulp/api/v3/repositories/7f1bc351-a1bd-4bf7-b7ee-0fc9fca592c7/versions/4/"</div><div>        }, </div><div>        {</div><div>            "base_version": null, </div><div>            "content_summary": {</div><div>                "added": {}, </div><div>                "present": {</div><div>                    "rpm.package": {</div><div>                        "count": 819, </div><div>                        "href": "/pulp/api/v3/content/rpm/packages/?repository_version=/pulp/api/v3/repositories/7f1bc351-a1bd-4bf7-b7ee-0fc9fca592c7/versions/3/"</div><div>                    }</div><div>                }, </div><div>                "removed": {}</div><div>            }, </div><div>            "number": 3, </div><div>            "pulp_created": "2019-10-23T18:15:24.285845Z", </div><div>            "pulp_href": "/pulp/api/v3/repositories/7f1bc351-a1bd-4bf7-b7ee-0fc9fca592c7/versions/3/"</div><div>        }, </div><div><br></div></div><div><br></div><div>Thanks</div></div>_______________________________________________<br>Pulp-list mailing list<br><a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div></blockquote><br></div></div></div></div></div>_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div></div>