[Notes] [Git][BuildStream/buildstream][bst-1.2] 2 commits: Disable round-tripping when element is not modified



Title: GitLab

Tristan Van Berkom pushed to branch bst-1.2 at BuildStream / buildstream

Commits:

1 changed file:

Changes:

  • buildstream/source.py
    ... ... @@ -739,7 +739,8 @@ class Source(Plugin):
    739 739
             #
    
    740 740
             # Step 2 - Set the ref in memory, and determine changed state
    
    741 741
             #
    
    742
    -        changed = self._set_ref(new_ref, node)
    
    742
    +        if not self._set_ref(new_ref, node):
    
    743
    +            return False
    
    743 744
     
    
    744 745
             def do_save_refs(refs):
    
    745 746
                 try:
    
    ... ... @@ -776,7 +777,7 @@ class Source(Plugin):
    776 777
                                       .format(provenance.filename.shortname),
    
    777 778
                                       reason="tracking-junction-fragment")
    
    778 779
     
    
    779
    -        return changed
    
    780
    +        return True
    
    780 781
     
    
    781 782
         # Wrapper for track()
    
    782 783
         #
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]