Re: [Rpm-maint] [rpm-software-management/rpm] Avoid modifying header on export (#870)

2019-09-27 Thread Panu Matilainen
Merged #870 into master. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/870#event-2668442635___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Avoid modifying header on export (#870)

2019-09-27 Thread ニール・ゴンパ
Conan-Kudo approved this pull request. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/pull/870#pullrequestreview-294273383___

Re: [Rpm-maint] [rpm-software-management/rpm] Avoid modifying header on export (#870)

2019-09-27 Thread Panu Matilainen
pmatilai commented on this pull request. > @@ -68,12 +68,6 @@ static const int typeSizes[16] = { 0 }; -enum headerSorted_e { -HEADERSORT_NONE= 0,/* Not sorted */ -HEADERSORT_OFFSET = 1,/* Sorted by offset (on-disk format) */ -HEADERSORT_INDEX = 2,/*

Re: [Rpm-maint] [rpm-software-management/rpm] Avoid modifying header on export (#870)

2019-09-27 Thread Panu Matilainen
pmatilai commented on this pull request. > @@ -68,12 +68,6 @@ static const int typeSizes[16] = { 0 }; -enum headerSorted_e { -HEADERSORT_NONE= 0,/* Not sorted */ -HEADERSORT_OFFSET = 1,/* Sorted by offset (on-disk format) */ -HEADERSORT_INDEX = 2,/*

Re: [Rpm-maint] [rpm-software-management/rpm] Avoid modifying header on export (#870)

2019-09-26 Thread ニール・ゴンパ
Conan-Kudo requested changes on this pull request. > @@ -68,12 +68,6 @@ static const int typeSizes[16] = { 0 }; -enum headerSorted_e { -HEADERSORT_NONE= 0,/* Not sorted */ -HEADERSORT_OFFSET = 1,/* Sorted by offset (on-disk format) */ -HEADERSORT_INDEX = 2,

[Rpm-maint] [rpm-software-management/rpm] Avoid modifying header on export (#870)

2019-09-26 Thread Panu Matilainen
headerExport() is the only thing that needs offset sorting, theres no point messing up with the header itself for this when we can just sort a copy instead. No visible functional changes, but makes headerExport() a read-only operation to the header, as it should be. You can view, comment on, or