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
e0e7cb1b
Kaydet (Commit)
e0e7cb1b
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
a1379f05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
sourcedb.py
pisi/sourcedb.py
+2
-7
No files found.
pisi/sourcedb.py
Dosyayı görüntüle @
e0e7cb1b
...
...
@@ -20,16 +20,11 @@ store a set of repositories in which the source appears.
the actual guy to take is determined from the repo order.
"""
import
os
import
fcntl
import
gettext
__trans
=
gettext
.
translation
(
'pisi'
,
fallback
=
True
)
_
=
__trans
.
ugettext
import
pisi.util
as
util
import
pisi.context
as
ctx
import
pisi.lockeddbshelve
as
shelve
import
pisi.repodb
import
pisi.itembyrepodb
...
...
@@ -55,13 +50,13 @@ class SourceDB(object):
def
get_spec
(
self
,
name
,
repo
=
None
,
txn
=
None
):
try
:
return
self
.
d
.
get_item
(
name
,
repo
,
txn
)
except
pisi
.
itembyrepodb
.
NotfoundError
,
e
:
except
pisi
.
itembyrepodb
.
NotfoundError
:
raise
NotfoundError
(
_
(
"Source package
%
s not found"
)
%
name
)
def
get_spec_repo
(
self
,
name
,
repo
=
None
,
txn
=
None
):
try
:
return
self
.
d
.
get_item_repo
(
name
,
repo
,
txn
)
except
pisi
.
itembyrepodb
.
NotfoundError
,
e
:
except
pisi
.
itembyrepodb
.
NotfoundError
:
raise
NotfoundError
(
_
(
"Source package
%
s not found"
)
%
name
)
def
pkgtosrc
(
self
,
name
,
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