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
ff76e166
Kaydet (Commit)
ff76e166
authored
Eyl 23, 2005
tarafından
Barış Metin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
do guarded programming, but don't absorb errors. it's no good :).
üst
89f39b7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
archive.py
pisi/archive.py
+3
-4
operations.py
pisi/operations.py
+5
-5
No files found.
pisi/archive.py
Dosyayı görüntüle @
ff76e166
...
...
@@ -146,10 +146,9 @@ class ArchiveZip(ArchiveBase):
ofile
=
os
.
path
.
join
(
target_dir
,
outpath
)
if
is_dir
:
# this is a directory
try
:
# To get rid of Error:[Errno 17] File exists: errors
os
.
makedirs
(
os
.
path
.
join
(
target_dir
,
outpath
))
except
OSError
:
pass
d
=
os
.
path
.
join
(
target_dir
,
outpath
)
if
not
os
.
path
.
isdir
(
d
):
os
.
makedirs
(
d
)
continue
# check that output dir is present
...
...
pisi/operations.py
Dosyayı görüntüle @
ff76e166
...
...
@@ -44,12 +44,12 @@ def remove_single(package_name):
if
os
.
path
.
isfile
(
fpath
):
os
.
rename
(
fpath
,
fpath
+
".pisi"
)
else
:
try
:
# check if file is removed manually.
# And we don't remove directories!
# FIXME: should give a warning if it is...
if
os
.
path
.
isfile
(
fpath
):
os
.
unlink
(
fpath
)
except
OSError
:
# file is removed (maybe manually)
# FIXME: should give a warning
pass
ctx
.
installdb
.
remove
(
package_name
)
packagedb
.
remove_package
(
package_name
)
...
...
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