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)
0
Konular (issue)
0
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
bf924c60
Kaydet (Commit)
bf924c60
authored
Nis 28, 2018
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Last Changes before inary-1.0_rc3
üst
caf29623
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
14 deletions
+31
-14
ChangeLog
ChangeLog
+6
-0
FIXME.md
FIXME.md
+6
-2
inary-cli
inary-cli
+1
-0
installdb.py
inary/db/installdb.py
+4
-3
fetcher.py
inary/fetcher.py
+12
-7
install.py
inary/operations/install.py
+1
-1
xmlext_minidom.py
inary/sxml/xmlext_minidom.py
+1
-1
No files found.
ChangeLog
Dosyayı görüntüle @
bf924c60
2018-03-28 Suleyman Poyraz <nipalensisaquila@gmail.com>
* Hata düzeltmeleri:
-> Kodlama hataları ele alındı, arada anlamsız gelen çıktılar düzeltildi
* Lisans:
-> GPLv3 yapıldı, eski developerlerin kullandığı Copyright da eklendi.
2018-03-15 Suleyman Poyraz <nipalensisaquila@gmail.com>
* fetcher.py:
-> Her zaman sinirimi bozan bu fetcher requests ile yeniden yazıldı.
...
...
FIXME.md
Dosyayı görüntüle @
bf924c60
2018-03-17 Suleyman POYRAZ
<nipalensisaquila@gmail.com>
*
inary.fetcher.py: --- status: not fixed; flag: critical ---:
*
inary.fetcher.py: --- status: fixed; flag: critical ---:
->Ufak bir sihirli dokunuş düzeltmeye yetti.
Neden local dosyaları çekmiyor bu?
"""
$ inary fc dbus
...
...
@@ -11,6 +12,8 @@
"""
* ayrıca yine fetcher:
-> local dosyalar indirilmiyor. Olduğu yerin path bilgisi alınıp kuruluyor
Oldukça temiz bir bakış açısı
sudo inary it dbus -f diyince nereye indiriyor yaw bu
...
...
@@ -48,6 +51,7 @@
2018-01-14 Suleyman POYRAZ
<nipalensisaquila@gmail.com>
*
inary/atomicoperations.py --- status: not fixed flag: critical ---
*
inary/atomicoperations.py --- status: fixed flag: critical ---
-> Dosya veritabanına bağlı hata düzeltildi.
In removing not asking "Do you want remove conflicted files "
Now remove all package files and conflicted files
inary-cli
Dosyayı görüntüle @
bf924c60
...
...
@@ -38,6 +38,7 @@ except:
#FIXME: Gorunusu guzel olsa bile kodda anlamsizlik yaratiyor
warn
=
inary
.
util
.
colorize
(
_
(
"WARNING
\n
"
),
"blinkingred"
)
+
\
inary
.
util
.
colorize
(
_
(
"
\t
Ciksemel XML Parser not found!!!
\n
"
"
\t
Minidom slower than ciksemel but
\n
"
"
\t
Falling back with minidom!!! :(
\n\n
"
),
'faintwhite'
)
sys
.
stdout
.
write
(
warn
)
...
...
inary/db/installdb.py
Dosyayı görüntüle @
bf924c60
...
...
@@ -150,10 +150,11 @@ class InstallDB(lazydb.LazyDB):
def
__get_version
(
self
,
meta_doc
):
package
=
xmlext
.
getNode
(
meta_doc
,
'Package'
)
update
=
xmlext
.
getNode
(
meta_doc
,
'Update'
)
history
=
xmlext
.
getNodeText
(
package
,
'History'
)
history
=
xmlext
.
getNode
(
package
,
'History'
)
update
=
xmlext
.
getNode
(
history
,
'Update'
)
version
=
xmlext
.
getNodeText
(
update
,
'Version'
)
release
=
xmlext
.
getNode
Text
(
update
,
'release'
)
release
=
xmlext
.
getNode
Attribute
(
update
,
'release'
)
return
version
,
release
,
None
...
...
inary/fetcher.py
Dosyayı görüntüle @
bf924c60
...
...
@@ -16,14 +16,11 @@
import
os
import
time
import
shutil
import
socket
import
sys
from
base64
import
encodestring
# Network libraries
from
http.client
import
HTTPException
import
ftplib
# import ftplib
#Gettext translation library
import
gettext
...
...
@@ -174,16 +171,21 @@ class Fetcher:
if
os
.
path
.
exists
(
self
.
archive_file
)
and
not
os
.
access
(
self
.
archive_file
,
os
.
W_OK
):
raise
FetchError
(
_
(
'Access denied to destination file: "
%
s"'
)
%
(
self
.
archive_file
))
if
self
.
url
.
is_local_file
:
ctx
.
ui
.
info
(
_
(
"Getting local package {}"
)
.
format
(
self
.
url
.
filename
()))
util
.
copy_file
(
self
.
url
.
get_uri
(),
self
.
partial_file
)
else
:
print
(
dir
(
self
.
url
))
try
:
import
requests
with
open
(
self
.
partial_file
,
"wb"
)
as
f
:
response
=
requests
.
get
(
self
.
url
.
get_uri
(),
proxies
=
self
.
_get_proxies
(),
headers
=
self
.
headers_dict
,
verify
=
verify
,
timeout
=
5
,
stream
=
True
)
verify
=
verify
,
timeout
=
5
,
stream
=
True
)
handler
=
UIHandler
()
total_length
=
int
(
response
.
headers
.
get
(
'content-length'
))
...
...
@@ -216,6 +218,9 @@ class Fetcher:
# TODO: Add ftp downloader with ftplib
raise
FetchError
(
_
(
'Package manager not support downloding from ftp mirror'
))
except
requests
.
exceptions
.
MissingSchema
:
ctx
.
ui
.
info
(
_
(
"Copying local file {}"
)
.
format
(
self
.
url
.
get_uri
()))
shutil
.
copy
(
self
.
url
.
get_uri
(),
self
.
partial_file
)
if
os
.
stat
(
self
.
partial_file
)
.
st_size
==
0
:
os
.
remove
(
self
.
partial_file
)
...
...
inary/operations/install.py
Dosyayı görüntüle @
bf924c60
...
...
@@ -272,7 +272,7 @@ def install_pkg_files(package_URIs, reinstall = False):
def
plan_install_pkg_names
(
A
):
# try to construct a inary graph of packages to
# install / reinstall
ctx
.
ui
.
info
(
_
(
'Checking packages to install...'
))
packagedb
=
inary
.
db
.
packagedb
.
PackageDB
()
G_f
=
pgraph
.
PGraph
(
packagedb
)
# construct G_f
...
...
inary/sxml/xmlext_minidom.py
Dosyayı görüntüle @
bf924c60
...
...
@@ -190,7 +190,7 @@ def newNode(node, tag):
return
node
.
ownerDocument
.
createElement
(
tag
)
def
toString
(
node
):
return
node
.
toxml
(
'utf-8'
)
return
node
.
toxml
()
def
toPretty
(
node
):
return
node
.
toprettyxml
()
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