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
c0946105
Kaydet (Commit)
c0946105
authored
May 22, 2007
tarafından
S.Çağlar Onur
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[merge] cleanup from -catbox branch
üst
2513a3fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
packagedb.py
pisi/packagedb.py
+1
-7
No files found.
pisi/packagedb.py
Dosyayı görüntüle @
c0946105
...
...
@@ -17,18 +17,12 @@ we basically store everything in PackageInfo class
yes, we are cheap
"""
import
os
import
fcntl
import
types
import
gettext
__trans
=
gettext
.
translation
(
'pisi'
,
fallback
=
True
)
_
=
__trans
.
ugettext
import
pisi
import
pisi.util
as
util
import
pisi.context
as
ctx
import
pisi.lockeddbshelve
as
shelve
import
pisi.itembyrepodb
class
Error
(
pisi
.
Error
):
...
...
@@ -61,7 +55,7 @@ class PackageDB(object):
def
get_package
(
self
,
name
,
repo
=
None
,
txn
=
None
):
try
:
return
self
.
d
.
get_item
(
name
,
repo
,
txn
=
txn
)
except
pisi
.
itembyrepodb
.
NotfoundError
,
e
:
except
pisi
.
itembyrepodb
.
NotfoundError
:
raise
Error
(
_
(
'Package
%
s not found'
)
%
name
)
def
get_package_repo
(
self
,
name
,
repo
=
None
,
txn
=
None
):
...
...
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