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
823f8947
Kaydet (Commit)
823f8947
authored
May 06, 2018
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Ufak yamalar
üst
31d7ee00
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
packagedb.py
inary/db/packagedb.py
+2
-2
file.py
inary/file.py
+1
-2
operations.py
inary/operations/operations.py
+1
-0
inarysign.py
tools/package-signing/inarysign.py
+2
-2
No files found.
inary/db/packagedb.py
Dosyayı görüntüle @
823f8947
...
...
@@ -80,8 +80,8 @@ class PackageDB(lazydb.LazyDB):
for
x
in
xmlext
.
getTagByName
(
doc
,
"Package"
):
name
=
xmlext
.
getNodeText
(
x
,
"Name"
)
compressed_data
=
gzip
.
zlib
.
compress
(
xmlext
.
toString
(
x
)
.
encode
(
'utf-8'
))
pdict
[
name
]
=
compressed_data
compressed_data
=
gzip
.
zlib
.
compress
(
xmlext
.
toString
(
x
)
.
encode
(
'utf-8'
))
pdict
[
name
]
=
compressed_data
return
pdict
...
...
inary/file.py
Dosyayı görüntüle @
823f8947
...
...
@@ -266,8 +266,7 @@ class File:
except
Exception
as
e
:
#FIXME: what exception could we catch here, replace with that.
raise
NoSignatureFound
(
uri
)
if
os
.
system
(
'gpg --verify '
+
sigfilename
)
!=
0
:
raise
InvalidSignature
(
uri
)
# everything is all right here
raise
InvalidSignature
(
uri
)
# everything is all right here
def
flush
(
self
):
self
.
__file__
.
flush
()
...
...
inary/operations/operations.py
Dosyayı görüntüle @
823f8947
...
...
@@ -13,6 +13,7 @@
import
inary.db
import
inary.operations
import
inary.blacklist
import
inary.context
as
ctx
def
list_needs_restart
():
"""
...
...
tools/package-signing/inarysign.py
Dosyayı görüntüle @
823f8947
...
...
@@ -54,7 +54,7 @@ def sign_data(data, key_file, password_fd):
pipe
=
subprocess
.
Popen
(
command
,
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
pipe
.
stdin
.
write
(
data
)
pipe
.
stdin
.
write
(
data
.
encode
(
'utf-8'
)
)
pipe
.
stdin
.
close
()
# Get signed data
...
...
@@ -401,7 +401,7 @@ def main():
if
len
(
sys
.
argv
[
4
:]):
# Keep password in a temporary file
password
=
getpass
.
getpass
()
password_fd
=
o
s
.
tmpfile
(
)
password_fd
=
o
pen
(
'/tmp/temporary_file_python'
,
'w'
)
password_fd
.
write
(
password
)
password_fd
.
flush
()
...
...
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