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
77caaea0
Kaydet (Commit)
77caaea0
authored
Ara 24, 2005
tarafından
Eray Özkural
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* forgotten package dir :'(
üst
843409ef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
api.py
pisi/api.py
+1
-1
atomicoperations.py
pisi/atomicoperations.py
+5
-3
installdb.py
pisi/installdb.py
+2
-1
package.py
pisi/package.py
+1
-1
No files found.
pisi/api.py
Dosyayı görüntüle @
77caaea0
...
...
@@ -197,7 +197,7 @@ def configure_pending():
False
,
False
)
pkg_path
=
util
.
join_path
(
ctx
.
config
.
lib_dir
(),
'package
/'
+
pkgname
)
'package
'
,
pkgname
)
m
=
MetaData
()
metadata_path
=
util
.
join_path
(
pkg_path
,
ctx
.
const
.
metadata_xml
)
m
.
read
(
metadata_path
)
...
...
pisi/atomicoperations.py
Dosyayı görüntüle @
77caaea0
...
...
@@ -329,7 +329,7 @@ class Remove(AtomicOperation):
self
.
files
=
ctx
.
installdb
.
files
(
self
.
package_name
)
except
pisi
.
Error
,
e
:
# for some reason file was deleted, we still allow removes!
ctx
.
ui
.
error
(
e
)
ctx
.
ui
.
error
(
unicode
(
e
)
)
ctx
.
ui
.
warning
(
_
(
'File list could not be read for package
%
s, continuing removal.'
)
%
package_name
)
self
.
files
=
Files
()
...
...
@@ -471,7 +471,8 @@ def resurrect_package(package_fn):
from
os.path
import
exists
metadata_xml
=
util
.
join_path
(
ctx
.
config
.
lib_dir
(),
'package/'
+
package_fn
,
ctx
.
const
.
metadata_xml
)
metadata_xml
=
util
.
join_path
(
ctx
.
config
.
lib_dir
(),
'package'
,
package_fn
,
ctx
.
const
.
metadata_xml
)
if
not
exists
(
metadata_xml
):
raise
Error
,
_
(
"Metadata XML '
%
s' cannot be found"
)
%
metadata_xml
...
...
@@ -495,7 +496,8 @@ def resurrect_package(package_fn):
if
not
passed
:
ctx
.
ui
.
info
(
_
(
'* Adding
\'
%
s
\'
to db... '
)
%
(
metadata
.
package
.
name
),
noln
=
True
)
files_xml
=
util
.
join_path
(
ctx
.
config
.
lib_dir
(),
'package/'
+
package_fn
,
ctx
.
const
.
files_xml
)
files_xml
=
util
.
join_path
(
ctx
.
config
.
lib_dir
(),
'package'
,
package_fn
,
ctx
.
const
.
files_xml
)
if
not
exists
(
files_xml
):
raise
Error
,
_
(
"Files XML '
%
s' cannot be found"
)
%
files_xml
...
...
pisi/installdb.py
Dosyayı görüntüle @
77caaea0
...
...
@@ -93,7 +93,8 @@ class InstallDB:
return
files
def
pkg_dir
(
self
,
pkg
,
version
,
release
):
return
join
(
ctx
.
config
.
lib_dir
(),
'package/'
+
pkg
+
'-'
+
version
+
'-'
+
release
)
return
join
(
ctx
.
config
.
lib_dir
(),
'package'
,
pkg
+
'-'
+
version
+
'-'
+
release
)
def
is_recorded
(
self
,
pkg
,
txn
=
None
):
pkg
=
str
(
pkg
)
...
...
pisi/package.py
Dosyayı görüntüle @
77caaea0
...
...
@@ -115,7 +115,7 @@ class Package:
+
self
.
metadata
.
package
.
version
+
'-'
\
+
self
.
metadata
.
package
.
release
return
join
(
ctx
.
config
.
lib_dir
(),
packageDir
)
return
join
(
ctx
.
config
.
lib_dir
(),
'package'
,
packageDir
)
def
comar_dir
(
self
):
return
join
(
self
.
pkg_dir
(),
ctx
.
const
.
comar_dir
)
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