Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
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)
1
Konular (issue)
1
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ç
SulinOS
inary
Commits
9d76eb68
Kaydet (Commit)
9d76eb68
authored
Ara 21, 2019
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added non verified archive fetching support.
üst
541a7476
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
archive.py
inary/archive.py
+6
-3
build.py
inary/cli/build.py
+5
-0
No files found.
inary/archive.py
Dosyayı görüntüle @
9d76eb68
...
...
@@ -901,7 +901,7 @@ class SourceArchive:
return
False
# check hash
if
util
.
check_file_hash
(
self
.
archiveFile
,
self
.
archive
.
sha1sum
):
if
util
.
check_file_hash
(
self
.
archiveFile
,
self
.
archive
.
sha1sum
)
or
ctx
.
get_option
(
'ignore_verify'
)
:
if
interactive
:
ctx
.
ui
.
info
(
_
(
'
\"
{}
\"
[cached]'
)
.
format
(
self
.
archive
.
name
))
return
True
...
...
@@ -912,8 +912,11 @@ class SourceArchive:
# check archive file's integrity
if
not
util
.
check_file_hash
(
self
.
archiveFile
,
self
.
archive
.
sha1sum
):
raise
SourceArchiveError
(
_
(
"unpack: check_file_hash failed."
))
ctx
.
ui
.
warning
(
_
(
"* Expected sha1 value: {}
\n
* Received sha1 value: {}
\n
"
.
format
(
self
.
archive
.
sha1sum
,
util
.
sha1_file
(
self
.
archiveFile
))))
if
not
ctx
.
get_option
(
'ignore_verify'
):
raise
SourceArchiveError
(
_
(
"unpack: check_file_hash failed."
))
else
:
ctx
.
ui
.
warning
(
_
(
"* Archive verification passed. Such problems may occur during the build process."
))
try
:
archive
=
Archive
(
self
.
archiveFile
,
self
.
archive
.
type
)
except
UnknownArchiveType
:
...
...
inary/cli/build.py
Dosyayı görüntüle @
9d76eb68
...
...
@@ -65,6 +65,11 @@ class Build(command.Command, metaclass=command.autocommand):
default
=
None
,
help
=
_
(
"Output directory for produced packages."
))
group
.
add_option
(
"--ignore-verify"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"Bypass sha1sum verify step of source archive."
))
group
.
add_option
(
"--ignore-action-errors"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"Bypass errors from ActionsAPI."
))
...
...
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