Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
388a8c26
Kaydet (Commit)
388a8c26
authored
Tem 06, 2006
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Properly generate logical file ids. Fixes #1515998.
Also correct typo in Control.mapping.
üst
b9aa7ea6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
__init__.py
Lib/msilib/__init__.py
+6
-4
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/msilib/__init__.py
Dosyayı görüntüle @
388a8c26
...
...
@@ -187,7 +187,7 @@ class CAB:
self
.
filenames
=
sets
.
Set
()
self
.
index
=
0
def
gen_id
(
self
,
dir
,
file
):
def
gen_id
(
self
,
file
):
logical
=
_logical
=
make_id
(
file
)
pos
=
1
while
logical
in
self
.
filenames
:
...
...
@@ -196,9 +196,11 @@ class CAB:
self
.
filenames
.
add
(
logical
)
return
logical
def
append
(
self
,
full
,
logical
):
def
append
(
self
,
full
,
file
,
logical
):
if
os
.
path
.
isdir
(
full
):
return
if
not
logical
:
logical
=
self
.
gen_id
(
file
)
self
.
index
+=
1
self
.
files
.
append
((
full
,
logical
))
return
self
.
index
,
logical
...
...
@@ -328,7 +330,7 @@ class Directory:
logical
=
self
.
keyfiles
[
file
]
else
:
logical
=
None
sequence
,
logical
=
self
.
cab
.
append
(
absolute
,
logical
)
sequence
,
logical
=
self
.
cab
.
append
(
absolute
,
file
,
logical
)
assert
logical
not
in
self
.
ids
self
.
ids
.
add
(
logical
)
short
=
self
.
make_short
(
file
)
...
...
@@ -403,7 +405,7 @@ class Control:
[(
self
.
dlg
.
name
,
self
.
name
,
event
,
argument
,
condition
,
ordering
)])
def
mapping
(
self
,
mapping
,
attribute
):
def
mapping
(
self
,
event
,
attribute
):
add_data
(
self
.
dlg
.
db
,
"EventMapping"
,
[(
self
.
dlg
.
name
,
self
.
name
,
event
,
attribute
)])
...
...
Misc/NEWS
Dosyayı görüntüle @
388a8c26
...
...
@@ -25,6 +25,8 @@ Core and builtins
Library
-------
- Bug #1515998: Properly generate logical ids for files in bdist_msi.
- warnings.py now ignores ImportWarning by default
- Patch #1517790: It is now possible to use custom objects in the ctypes
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment