mirror of
https://abf.rosa.ru/djam/abf-console-client-src.git
synced 2025-02-23 09:52:48 +00:00
fix abf create from src.rpm
This commit is contained in:
parent
ea9a02c9ae
commit
e3db3b5601
1 changed files with 3 additions and 3 deletions
6
abf.py
6
abf.py
|
@ -1070,9 +1070,9 @@ def create():
|
||||||
print(_("Incorrect owner data"))
|
print(_("Incorrect owner data"))
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
name = Popen('rpm -qp --qf="%{NAME}" ' + command_line.srpm, stdout=PIPE, shell=True).stdout.read()
|
name = Popen('rpm -qp --qf="%{NAME}" ' + command_line.srpm, stdout=PIPE, shell=True).stdout.read().decode()
|
||||||
if name > '':
|
if len(name) > 0:
|
||||||
description = Popen('rpm -qp --qf="%{SUMMARY}" ' + command_line.srpm, stdout=PIPE, shell=True).stdout.read()
|
description = Popen('rpm -qp --qf="%{SUMMARY}" ' + command_line.srpm, stdout=PIPE, shell=True).stdout.read().decode()
|
||||||
ProjectCreator.new_project(models, name, description, owner_id, owner_type)
|
ProjectCreator.new_project(models, name, description, owner_id, owner_type)
|
||||||
|
|
||||||
# Save cwd, create temp folder and go to it
|
# Save cwd, create temp folder and go to it
|
||||||
|
|
Loading…
Add table
Reference in a new issue