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
4158e197
Kaydet (Commit)
4158e197
authored
May 11, 2020
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
History reset added.
üst
a8c6862b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
history.py
inary/cli/history.py
+7
-0
history.py
inary/data/history.py
+1
-1
No files found.
inary/cli/history.py
Dosyayı görüntüle @
4158e197
...
...
@@ -138,5 +138,12 @@ Lists previous operations.""")
if
opno
!=
-
1
:
self
.
takeback
(
opno
)
return
elif
ctx
.
get_option
(
'reset'
):
util
.
clean_dir
(
ctx
.
config
.
history_dir
())
util
.
makedirs
(
ctx
.
config
.
history_dir
())
import
inary.data.history
as
History
history
=
History
.
History
()
history
.
add
(
"reset"
)
return
self
.
redirect_output
(
self
.
print_history
())
inary/data/history.py
Dosyayı görüntüle @
4158e197
...
...
@@ -122,7 +122,7 @@ class History(xmlfile.XmlFile, metaclass=autoxml.autoxml):
# @param otype is currently only used to hold if an upgrade is from "delta"
def
add
(
self
,
pkgBefore
=
None
,
pkgAfter
=
None
,
operation
=
None
,
otype
=
None
):
if
operation
not
in
[
"upgrade"
,
"remove"
,
"install"
,
"reinstall"
,
"downgrade"
,
"snapshot"
]:
if
operation
not
in
[
"upgrade"
,
"remove"
,
"install"
,
"reinstall"
,
"downgrade"
,
"snapshot"
,
"reset"
]:
raise
Exception
(
_
(
"Unknown package operation"
))
package
=
Package
()
...
...
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