Commit 385818b
Avoid updating entity value if the entity is referenced from the new value (#388)
Avoid updating entity value if the entity is referenced from the new value
Consider the folowing excerpt from a spec file:
%global rel 1%{?dist}
Release: %{rel}
Previously, calling Specfile.update_tag("Release", "%rel") resulted in the macro definition being updated to %global rel %rel, making the spec file invalid. After this change, the macro definition stays unchanged and the tag is updated to Release: %rel.
Reviewed-by: Laura Barcziová2 files changed
+36
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
774 | 775 | | |
775 | 776 | | |
776 | 777 | | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
777 | 802 | | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
778 | 807 | | |
779 | 808 | | |
780 | 809 | | |
| |||
822 | 851 | | |
823 | 852 | | |
824 | 853 | | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
825 | 857 | | |
826 | 858 | | |
827 | 859 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
408 | 412 | | |
409 | 413 | | |
410 | 414 | | |
| |||
0 commit comments