Fix for a case with perl delta package. c2ph and pstruct
are hardlinks... perl-6-7.delta.pisi [önbellekte] perl paketi, versiyon 5.8.8, sürüm 14, inşa 7 kuruluyor Yeni dağıtım sürümüne yükseltiliyor perl paketi kaldırılmak üzere yapılandırılıyor DEBUG: Paketin kaldırma öncesi betiği çağrılıyor DEBUG: Kaldırma öncesi betikleri çağrılıyor DEBUG: comar betikleri siliniyor perl paketinin dosyaları arşivden çıkartılıyor Sistem Hatası: Program Sonlandırıldı. shutil.Error: `/usr/bin/c2ph` and `/usr/bin/pstruct` are the same file
This commit is contained in:
+2
-1
@@ -125,8 +125,9 @@ def find_relocations(oldfiles, newfiles):
|
|||||||
relocations = []
|
relocations = []
|
||||||
for h in files_new.keys():
|
for h in files_new.keys():
|
||||||
if h and h in files_old:
|
if h and h in files_old:
|
||||||
|
old_paths = [x.path for x in files_old[h]]
|
||||||
for i in range(len(files_new[h])):
|
for i in range(len(files_new[h])):
|
||||||
if files_old[h][0].path != files_new[h][i].path:
|
if files_new[h][i].path not in old_paths:
|
||||||
relocations.append((files_old[h][0], files_new[h][i]))
|
relocations.append((files_old[h][0], files_new[h][i]))
|
||||||
|
|
||||||
return relocations
|
return relocations
|
||||||
|
|||||||
Reference in New Issue
Block a user