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
0383a2ba
Kaydet (Commit)
0383a2ba
authored
Şub 09, 2020
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lp ve cp duzeltildi
üst
cf7bf3c8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
30 deletions
+28
-30
configurepending.py
inary/cli/configurepending.py
+12
-16
reconfigure.py
inary/cli/reconfigure.py
+13
-14
fetcher.py
inary/fetcher.py
+3
-0
No files found.
inary/cli/configurepending.py
Dosyayı görüntüle @
0383a2ba
...
...
@@ -39,23 +39,19 @@ def configure_pending(packages=None):
order
=
inary
.
data
.
pgraph
.
generate_pending_order
(
packages
)
for
x
in
order
:
if
installdb
.
has_package
(
x
):
pkginfo
=
installdb
.
get_package
(
x
)
pkg_path
=
installdb
.
package_path
(
x
)
m
=
inary
.
data
.
metadata
.
MetaData
()
metadata_path
=
util
.
join_path
(
pkg_path
,
ctx
.
const
.
metadata_xml
)
m
.
read
(
metadata_path
)
# FIXME: we need a full package info here!
pkginfo
.
name
=
x
ctx
.
ui
.
notify
(
inary
.
ui
.
configuring
,
package
=
pkginfo
,
files
=
None
)
command
=
m
.
package
.
postopsPostInstall
[
0
]
if
os
.
system
(
command
)
!=
0
:
ctx
.
ui
.
warning
(
_
(
'Configuration of
\"
{}
\"
package failed.'
)
.
format
(
pkginfo
.
name
))
else
:
installdb
.
clear_pending
(
x
)
for
x
in
order
:
if
installdb
.
has_package
(
x
):
pkginfo
=
installdb
.
get_package
(
x
)
pkg_path
=
installdb
.
package_path
(
x
)
m
=
inary
.
data
.
metadata
.
MetaData
()
metadata_path
=
util
.
join_path
(
pkg_path
,
ctx
.
const
.
metadata_xml
)
m
.
read
(
metadata_path
)
# FIXME: we need a full package info here!
pkginfo
.
name
=
x
ctx
.
ui
.
notify
(
inary
.
ui
.
configuring
,
package
=
pkginfo
,
files
=
None
)
inary
.
trigger
.
Trigger
()
.
postinstall
(
pkg_path
)
ctx
.
ui
.
notify
(
inary
.
ui
.
configured
,
package
=
pkginfo
,
files
=
None
)
installdb
.
clear_pending
(
x
)
class
ConfigurePending
(
command
.
PackageOp
,
metaclass
=
command
.
autocommand
):
__doc__
=
_
(
"""Configure pending packages
...
...
inary/cli/reconfigure.py
Dosyayı görüntüle @
0383a2ba
...
...
@@ -33,20 +33,19 @@ def configure_pending(packages=None):
# configure them in reverse topological order of dependency
installdb
=
inary
.
db
.
installdb
.
InstallDB
()
order
=
packages
if
True
:
for
x
in
order
:
if
installdb
.
has_package
(
x
):
pkginfo
=
installdb
.
get_package
(
x
)
pkg_path
=
installdb
.
package_path
(
x
)
m
=
inary
.
data
.
metadata
.
MetaData
()
metadata_path
=
util
.
join_path
(
pkg_path
,
ctx
.
const
.
metadata_xml
)
m
.
read
(
metadata_path
)
# FIXME: we need a full package info here!
pkginfo
.
name
=
x
ctx
.
ui
.
notify
(
inary
.
ui
.
configuring
,
package
=
pkginfo
,
files
=
None
)
inary
.
trigger
.
post_install
(
pkg_path
)
ctx
.
ui
.
notify
(
inary
.
ui
.
configured
,
package
=
pkginfo
,
files
=
None
)
installdb
.
clear_pending
(
x
)
for
x
in
order
:
if
installdb
.
has_package
(
x
):
pkginfo
=
installdb
.
get_package
(
x
)
pkg_path
=
installdb
.
package_path
(
x
)
m
=
inary
.
data
.
metadata
.
MetaData
()
metadata_path
=
util
.
join_path
(
pkg_path
,
ctx
.
const
.
metadata_xml
)
m
.
read
(
metadata_path
)
# FIXME: we need a full package info here!
pkginfo
.
name
=
x
ctx
.
ui
.
notify
(
inary
.
ui
.
configuring
,
package
=
pkginfo
,
files
=
None
)
inary
.
trigger
.
Trigger
()
.
postinstall
(
pkg_path
)
ctx
.
ui
.
notify
(
inary
.
ui
.
configured
,
package
=
pkginfo
,
files
=
None
)
installdb
.
clear_pending
(
x
)
class
ConfigurePending
(
command
.
PackageOp
,
metaclass
=
command
.
autocommand
):
__doc__
=
_
(
"""Reconfigure pending packages
...
...
inary/fetcher.py
Dosyayı görüntüle @
0383a2ba
...
...
@@ -166,6 +166,9 @@ 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: "{}"'
)
.
format
(
self
.
archive_file
))
if
os
.
path
.
exists
(
self
.
archive_file
):
ctx
.
ui
.
info
(
_
(
"File already exsist. Download skiped..."
),
verbose
=
True
)
return
0
c
=
pycurl
.
Curl
()
c
.
protocol
=
self
.
url
.
scheme
()
c
.
setopt
(
c
.
URL
,
self
.
url
.
get_uri
())
...
...
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