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
44a980df
Kaydet (Commit)
44a980df
authored
Agu 15, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed the move-RPM-files hack so it knows about the '--binary-only' and
'--source-only' options.
üst
a12c1950
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
bdist_rpm.py
Lib/distutils/command/bdist_rpm.py
+11
-8
No files found.
Lib/distutils/command/bdist_rpm.py
Dosyayı görüntüle @
44a980df
...
@@ -295,14 +295,17 @@ class bdist_rpm (Command):
...
@@ -295,14 +295,17 @@ class bdist_rpm (Command):
# find out the names of the RPM files created; also, this assumes
# find out the names of the RPM files created; also, this assumes
# that RPM creates exactly one source and one binary RPM.
# that RPM creates exactly one source and one binary RPM.
if
not
self
.
dry_run
:
if
not
self
.
dry_run
:
srpms
=
glob
.
glob
(
os
.
path
.
join
(
rpm_dir
[
'SRPMS'
],
"*.rpm"
))
if
not
self
.
binary_only
:
rpms
=
glob
.
glob
(
os
.
path
.
join
(
rpm_dir
[
'RPMS'
],
"*/*.rpm"
))
srpms
=
glob
.
glob
(
os
.
path
.
join
(
rpm_dir
[
'SRPMS'
],
"*.rpm"
))
assert
len
(
srpms
)
==
1
,
\
assert
len
(
srpms
)
==
1
,
\
"unexpected number of SRPM files found:
%
s"
%
srpms
"unexpected number of SRPM files found:
%
s"
%
srpms
assert
len
(
rpms
)
==
1
,
\
self
.
move_file
(
srpms
[
0
],
self
.
dist_dir
)
"unexpected number of RPM files found:
%
s"
%
rpms
self
.
move_file
(
srpms
[
0
],
self
.
dist_dir
)
if
not
self
.
source_only
:
self
.
move_file
(
rpms
[
0
],
self
.
dist_dir
)
rpms
=
glob
.
glob
(
os
.
path
.
join
(
rpm_dir
[
'RPMS'
],
"*/*.rpm"
))
assert
len
(
rpms
)
==
1
,
\
"unexpected number of RPM files found:
%
s"
%
rpms
self
.
move_file
(
rpms
[
0
],
self
.
dist_dir
)
# run()
# run()
...
...
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