Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions configs/caches.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
56 changes: 56 additions & 0 deletions configs/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"cachepath": "",
"updateinfo": {
"repoinfo": [
{
"type": "deb",
"url": "xxxxs://example.com/testapp",
"suite": "eagle",
"components": [
"main",
"non-free",
"contrib"
]
}
],
"applist": [
{
"name": "systemd",
"version": "251.04"
}
],
"corelist": [
{
"name": "systemd",
"version": "241.50-1+deepin1",
"need": "strict"
},
{
"name": "startdde",
"version": "5.10.8.3-1",
"need": "true"
},
{
"name": "libdtkgui5",
"version": "5.6.8-1",
"need": "true"
}
],
"freezelist": [
{
"name": "dpkg",
"version": "1.19.7.15-1+dde",
"need": "true"
}
],
"optionlist": [
{
"name": "org.deepin.scanner",
"version": "5.5.15-1",
"need": "false"
}
]
},
"time": "2023-07-24T18:19:52+08:00",
"uuid": "fbcfe027-2b49-4b71-a6e2-2f150c205189"
}
3 changes: 3 additions & 0 deletions configs/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CacheList: caches.yaml
Base: /var/lib/deepin-system-update/
DebugMode: false
1 change: 1 addition & 0 deletions configs/core-pkg-list.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# core package list
81 changes: 81 additions & 0 deletions configs/metacfg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"PkgDebPath":"/var/lib/",
"PkgList": [
{
"Name": "systemd",
"Version": "251.0+dde",
"Need": "strict"
},
{
"Name": "libsystemd0",
"Version": "251.0+dde",
"Need": "strict"
}
],
"CoreList": [
{
"Name": "systemd",
"Version": "251.0+dde",
"Need": "skipversion"
},
{
"Name": "libsystemd0",
"Version": "251.0+dde",
"Need": "skipversion"
}
],
"OptionList": [
{
"Name": "wps",
"Version": "251.0+dde",
"Need": "exist"
}
],
"BaseLine": [
{
"Name": "systemd",
"Version": "251.0+dde",
"Need": "skipversion"
},
{
"Name": "startdde",
"Version": "251.0+dde",
"Need": "skipversion"
}
],
"Rules": [
{
"Name": "00_precheck",
"Type": 0,
"Command": "echo \"This is precheck\"\nexit 0\n",
"Argv": "--ignore-warring --ignore-error"
},
{
"Name": "10_midcheck",
"Type": 1,
"Command": "echo \"This is midcheck\"\nexit 0\n",
"Argv": "--ignore-warring --ignore-error"
},
{
"Name": "20_postcheck",
"Type": 2,
"Command": "echo \"This is postcheck\"\nexit 0\n",
"Argv": "--ignore-warring --ignore-error"
}
],
"RepoInfo": [
{
"Name": "eagle/1050_nonfree",
"FilePath": "/var/lib/apt/lists/mirrors.ustc.edu.cn_debian_dists_stable_main_binary-amd64_Packages",
"HashSha256": "82df7ef9c4dd759bce8cd208e5b1b5e22c0a5fdc92b645a678ad6abfb7ad1d65"
},
{
"Name": "eagle/1050_main",
"FilePath": "/var/lib/apt/lists/packages.microsoft.com_repos_code_dists_stable_main_binary-amd64_Packages",
"HashSha256": "7033ef56b1f4d641fe7dc4c42a80dafaccc6ade08959787949bdb05fd9551561"
}

],
"UUID": "c2ade74e-015c-49b2-8a7d-cb5767486e48",
"TIme": "2023-10-10T15:34:42.233Z"
}
6 changes: 6 additions & 0 deletions configs/update.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# \item work目录
# \item 更新平台url
# \item cache文件
work: /opt/uos-update
url: 127.0.0.1:8080
cache: /opt/uos-update/cache.yaml
7 changes: 5 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ Build-Depends:
golang-github-codegangsta-cli-dev,
golang-github-jouyouyun-hardware-dev,
golang-github-knqyf263-go-deb-version-dev,
golang-github-sirupsen-logrus-dev,
golang-github-gin-gonic-gin-dev,
golang-github-google-uuid-dev,
golang-github-spf13-cobra-dev,
golang-github-stretchr-testify-dev,
libsystemd-dev,
Standards-Version: 4.1.3
Homepage: http://github.com/linuxdeepin/lastore-daemon
Expand All @@ -33,8 +38,6 @@ Depends:
procps,
binutils,
xz-utils,
deepin-system-fixpkg,
deepin-system-update,
${dist:Depends},
${misc:Depends},
${shlibs:Depends},
Expand Down
21 changes: 21 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ replace github.com/codegangsta/cli => github.com/urfave/cli v1.22.12

require (
github.com/codegangsta/cli v0.0.0-00010101000000-000000000000
github.com/gin-gonic/gin v1.5.0
github.com/go-ini/ini v1.67.0
github.com/godbus/dbus/v5 v5.1.0
github.com/google/uuid v1.3.0
github.com/jouyouyun/hardware v0.1.8
github.com/linuxdeepin/dde-api v0.0.0-20230407015108-8b16b3779328
github.com/linuxdeepin/go-dbus-factory v0.0.0-20250422133602-ca1778dfc5c7
github.com/linuxdeepin/go-lib v0.0.0-20230406092403-b4b4282fc513
github.com/onsi/ginkgo v1.16.5
github.com/onsi/gomega v1.27.6
github.com/sirupsen/logrus v1.4.1
github.com/spf13/cobra v0.0.3
github.com/spf13/viper v1.3.2 // indirect
github.com/stretchr/testify v1.8.2
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
pault.ag/go/debian v0.12.0
Expand All @@ -24,6 +29,7 @@ require (
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/go-resty/resty/v2 v2.2.0
github.com/google/go-cmp v0.5.9 // indirect
github.com/gosexy/gettext v0.0.0-20160830220431-74466a0a0c4a // indirect
github.com/kr/pretty v0.2.1 // indirect
Expand All @@ -39,3 +45,18 @@ require (
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

require gopkg.in/yaml.v2 v2.4.0

require (
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-playground/locales v0.12.1 // indirect
github.com/go-playground/universal-translator v0.16.0 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/leodido/go-urn v1.1.0 // indirect
github.com/mattn/go-isatty v0.0.9 // indirect
github.com/spf13/pflag v1.0.3 // indirect
github.com/ugorji/go/codec v1.1.7 // indirect
google.golang.org/protobuf v1.28.0 // indirect
gopkg.in/go-playground/validator.v9 v9.29.1 // indirect
)
Loading
Loading