mirror of
https://abf.rosa.ru/djam/abf-console-client-src.git
synced 2025-02-24 02:12:49 +00:00
Turn back 'abf put ' - it uploads tarballs to file store, unlike git
This commit is contained in:
parent
a252a34510
commit
db54bfc136
1 changed files with 1 additions and 7 deletions
8
abf.py
8
abf.py
|
@ -860,13 +860,7 @@ def create():
|
|||
os.system("abf get " + command_line.owner + "/" + name)
|
||||
os.chdir(tempdir + "/" + name)
|
||||
os.system("rpm2cpio ../" + os.path.basename(command_line.srpm) + " | cpio -id")
|
||||
# "abf put" will try to parse spec file to decide which files should be added/uploaded
|
||||
# However, it will fail if we e.g. import SRPM for a system that differs from the current one,
|
||||
# which spec file can't be parsed by current rpm.
|
||||
# At the same time, we are sure that all files from SRPM should be added to Git
|
||||
# os.system("abf put -m 'Imported from SRPM'")
|
||||
os.system("git add *")
|
||||
os.system("git commit -m 'Imported from SRPM'")
|
||||
os.system("abf put -m 'Imported from SRPM'")
|
||||
os.system("git push -u origin master")
|
||||
|
||||
if command_line.branch:
|
||||
|
|
Loading…
Add table
Reference in a new issue