Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
44a980df
Commit
44a980df
authored
Aug 15, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the move-RPM-files hack so it knows about the '--binary-only' and
'--source-only' options.
parent
a12c1950
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
Lib/distutils/command/bdist_rpm.py
Lib/distutils/command/bdist_rpm.py
+11
-8
No files found.
Lib/distutils/command/bdist_rpm.py
View file @
44a980df
...
...
@@ -295,14 +295,17 @@ class bdist_rpm (Command):
# find out the names of the RPM files created; also, this assumes
# that RPM creates exactly one source and one binary RPM.
if
not
self
.
dry_run
:
srpms
=
glob
.
glob
(
os
.
path
.
join
(
rpm_dir
[
'SRPMS'
],
"*.rpm"
))
rpms
=
glob
.
glob
(
os
.
path
.
join
(
rpm_dir
[
'RPMS'
],
"*/*.rpm"
))
assert
len
(
srpms
)
==
1
,
\
"unexpected number of SRPM files found: %s"
%
srpms
assert
len
(
rpms
)
==
1
,
\
"unexpected number of RPM files found: %s"
%
rpms
self
.
move_file
(
srpms
[
0
],
self
.
dist_dir
)
self
.
move_file
(
rpms
[
0
],
self
.
dist_dir
)
if
not
self
.
binary_only
:
srpms
=
glob
.
glob
(
os
.
path
.
join
(
rpm_dir
[
'SRPMS'
],
"*.rpm"
))
assert
len
(
srpms
)
==
1
,
\
"unexpected number of SRPM files found: %s"
%
srpms
self
.
move_file
(
srpms
[
0
],
self
.
dist_dir
)
if
not
self
.
source_only
:
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()
...
...
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