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)
0
Konular (issue)
0
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
7de85174
Kaydet (Commit)
7de85174
authored
Nis 29, 2018
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed history error, add test in setup file
üst
24ea419d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
historydb.py
inary/db/historydb.py
+3
-3
setup.py
setup.py
+18
-1
No files found.
inary/db/historydb.py
Dosyayı görüntüle @
7de85174
...
...
@@ -68,7 +68,7 @@ class HistoryDB(lazydb.LazyDB):
for
log
in
self
.
__logs
:
if
log
.
startswith
(
"
%03
d_"
%
operation
):
hist
=
History
.
History
(
os
.
path
.
join
(
ctx
.
config
.
history_dir
(),
log
))
hist
.
operation
.
no
=
int
(
log
.
split
(
"_"
)[
0
])
hist
.
operation
.
no
=
int
(
log
.
split
(
"_"
)[
0
]
.
replace
(
"0o"
,
"0"
)
)
return
hist
.
operation
return
None
...
...
@@ -105,14 +105,14 @@ class HistoryDB(lazydb.LazyDB):
return
hist
=
History
.
History
(
os
.
path
.
join
(
ctx
.
config
.
history_dir
(),
log
))
hist
.
operation
.
no
=
int
(
log
.
split
(
"_"
)[
0
])
hist
.
operation
.
no
=
int
(
log
.
split
(
"_"
)[
0
]
.
replace
(
"0o"
,
"0"
)
)
yield
hist
.
operation
def
get_last
(
self
,
count
=
0
):
count
=
count
or
len
(
self
.
__logs
)
for
log
in
self
.
__logs
[:
count
]:
hist
=
History
.
History
(
os
.
path
.
join
(
ctx
.
config
.
history_dir
(),
log
))
hist
.
operation
.
no
=
int
(
log
.
split
(
"_"
)[
0
])
hist
.
operation
.
no
=
int
(
log
.
split
(
"_"
)[
0
]
.
replace
(
"0o"
,
"0"
)
)
yield
hist
.
operation
def
get_last_repo_update
(
self
,
last
=
1
):
...
...
setup.py
Dosyayı görüntüle @
7de85174
...
...
@@ -19,6 +19,7 @@ import glob
import
sys
import
inspect
import
tempfile
import
subprocess
from
distutils.core
import
setup
from
distutils.cmd
import
Command
from
distutils.command.build
import
build
...
...
@@ -170,6 +171,21 @@ class Uninstall(Command):
print
(
' removing: '
,
project_dir
)
shutil
.
rmtree
(
project_dir
)
class
Test
(
Command
):
user_options
=
[]
def
initialize_options
(
self
):
pass
def
finalize_options
(
self
):
pass
def
run
(
self
):
self
.
run_command
(
'build'
)
os
.
chdir
(
'tests'
)
subprocess
.
check_call
([
sys
.
executable
,
'-bWd'
,
os
.
path
.
join
(
'runTests.py'
)
])
datas
=
[
(
"/etc/inary/"
,[
"config/mirrors.conf"
,
"config/sandbox.conf"
]),
...
...
@@ -205,7 +221,8 @@ setup(name="inary",
cmdclass
=
{
'build'
:
Build
,
'build_po'
:
BuildPo
,
'install'
:
Install
,
'uninstall'
:
Uninstall
},
'uninstall'
:
Uninstall
,
'test'
:
Test
},
data_files
=
datas
)
...
...
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