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
2f663959
Kaydet (Commit)
2f663959
authored
Agu 29, 2020
tarafından
Your Name
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix destdir remove
üst
5cd128e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
archive.py
inary/archive.py
+2
-2
package.py
inary/package.py
+9
-6
sulinstrapt
scripts/sulinstrapt
+1
-1
No files found.
inary/archive.py
Dosyayı görüntüle @
2f663959
...
...
@@ -445,9 +445,9 @@ class ArchiveTar(ArchiveBase):
shutil
.
rmtree
(
tarinfo
.
name
)
try
:
if
not
os
.
path
.
isdir
(
"/"
+
tarinfo
.
name
)
and
not
os
.
path
.
islink
(
"/"
+
tarinfo
.
name
):
if
not
os
.
path
.
isdir
(
tarinfo
.
name
)
and
not
os
.
path
.
islink
(
tarinfo
.
name
):
try
:
os
.
unlink
(
"/"
+
tarinfo
.
name
)
os
.
unlink
(
tarinfo
.
name
)
except
:
# TODO: review this block
pass
...
...
inary/package.py
Dosyayı görüntüle @
2f663959
...
...
@@ -68,6 +68,7 @@ class Package:
def
__init__
(
self
,
packagefn
,
mode
=
'r'
,
format
=
None
,
tmp_dir
=
None
,
pkgname
=
''
,
no_fetch
=
False
):
self
.
filepath
=
packagefn
self
.
destdir
=
ctx
.
config
.
dest_dir
()
url
=
inary
.
uri
.
URI
(
packagefn
)
if
(
"://"
in
self
.
filepath
)
and
not
no_fetch
:
...
...
@@ -225,17 +226,19 @@ class Package:
# Also, tar.extract() doesn't write on symlinks...
# We remove file symlinks before (directory symlinks
# broke system)
if
not
os
.
path
.
isdir
(
tarinfo
.
name
):
if
os
.
path
.
islink
(
tarinfo
.
name
):
link
=
os
.
readlink
(
tarinfo
.
name
)
if
not
os
.
path
.
isdir
(
link
):
if
not
os
.
path
.
isdir
(
self
.
destdir
+
"/"
+
tarinfo
.
name
):
if
os
.
path
.
islink
(
self
.
destdir
+
"/"
+
tarinfo
.
name
):
link
=
os
.
readlink
(
self
.
destdir
+
"/"
+
tarinfo
.
name
)
if
not
os
.
path
.
isdir
(
self
.
destdir
+
"/"
+
link
):
try
:
os
.
unlink
(
tarinfo
.
name
)
if
os
.
path
.
exists
(
self
.
destdir
+
"/"
+
tarinfo
.
name
):
os
.
unlink
(
self
.
destdir
+
"/"
+
tarinfo
.
name
)
except
OSError
as
e
:
ctx
.
ui
.
warning
(
e
)
else
:
try
:
os
.
unlink
(
tarinfo
.
name
)
if
os
.
path
.
exists
(
self
.
destdir
+
"/"
+
tarinfo
.
name
):
os
.
unlink
(
self
.
destdir
+
"/"
+
tarinfo
.
name
)
except
OSError
as
e
:
ctx
.
ui
.
warning
(
e
)
...
...
scripts/sulinstrapt
Dosyayı görüntüle @
2f663959
...
...
@@ -21,7 +21,7 @@ then
echo
"
$sulin
is a file. You must delete or move."
exit
1
fi
inary ar sulin https://master.dl.sourceforge.net/project/sulinos/SulinRepository/inary-index.xml
-y
-D
$sulin
inary ar sulin https://master.dl.sourceforge.net/project/sulinos/SulinRepository/inary-index.xml
.xz
-y
-D
$sulin
inary ur
-y
-D
$sulin
inary it baselayout
--ignore-dep
--ignore-safety
--ignore-configure
-y
-D
$sulin
inary it
-c
system.base
-y
--ignore-configure
-D
$sulin
...
...
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