mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-28 10:46:15 +01:00
- fixed importsrcpkg doc
- osc build: if --keep-pkgs is used also save the src.rpm
This commit is contained in:
parent
7172db474e
commit
c1b99b041f
@ -201,7 +201,7 @@ def get_built_files(pacdir, pactype):
|
|||||||
b_built = subprocess.Popen(['find', os.path.join(pacdir, 'DEBS'),
|
b_built = subprocess.Popen(['find', os.path.join(pacdir, 'DEBS'),
|
||||||
'-name', '*.deb'],
|
'-name', '*.deb'],
|
||||||
stdout=subprocess.PIPE).stdout.read().strip()
|
stdout=subprocess.PIPE).stdout.read().strip()
|
||||||
s_built = None
|
s_built = ''
|
||||||
return s_built, b_built
|
return s_built, b_built
|
||||||
|
|
||||||
|
|
||||||
@ -444,7 +444,7 @@ def main(opts, argv):
|
|||||||
print b_built
|
print b_built
|
||||||
|
|
||||||
if opts.keep_pkgs:
|
if opts.keep_pkgs:
|
||||||
for i in b_built.splitlines():
|
for i in b_built.splitlines() + s_built.splitlines():
|
||||||
import shutil
|
import shutil
|
||||||
shutil.copy2(i, os.path.join(opts.keep_pkgs, os.path.basename(i)))
|
shutil.copy2(i, os.path.join(opts.keep_pkgs, os.path.basename(i)))
|
||||||
|
|
||||||
|
@ -2287,9 +2287,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
the package does not exist on the server it will be created
|
the package does not exist on the server it will be created
|
||||||
too otherwise the meta data of the existing package will be
|
too otherwise the meta data of the existing package will be
|
||||||
updated (<title /> and <description />).
|
updated (<title /> and <description />).
|
||||||
The src.rpm will be extracted into the package dir. If the
|
The src.rpm will be extracted into the package dir. The files
|
||||||
--disable-commit switch is not used all changes will be
|
won't be committed unless you explicitly pass the --commit switch.
|
||||||
committed.
|
|
||||||
|
|
||||||
SRPM is the path of the src.rpm in the local filesystem,
|
SRPM is the path of the src.rpm in the local filesystem,
|
||||||
or an URL.
|
or an URL.
|
||||||
|
Loading…
Reference in New Issue
Block a user