1
0
mirror of https://github.com/CMiksche/gitea-auto-update synced 2025-12-11 08:27:23 +01:00

fix: false package names

This commit is contained in:
Christoph Miksche
2019-08-26 23:15:33 +02:00
parent aa6fc91826
commit 3174f2783f

View File

@@ -10,9 +10,9 @@ import os
import logging import logging
import configparser import configparser
import fire import fire
import lib.version import gitea_auto_update.lib.version
import lib.download import gitea_auto_update.lib.download
import lib.build import gitea_auto_update.lib.build
class Update: class Update:
@@ -30,8 +30,8 @@ class Update:
self.checkAndUpdate() self.checkAndUpdate()
def initVersionAndBuild(self): def initVersionAndBuild(self):
self.version = lib.version.Version(self.gtSite, self.gtFile) self.version = gitea_auto_update.lib.version.Version(self.gtSite, self.gtFile)
self.build = lib.build.Build(self.gtFile, self.sourceDir) self.build = gitea_auto_update.lib.build.Build(self.gtFile, self.sourceDir)
def getVersionAndTag(self): def getVersionAndTag(self):
self.currentVersion = self.version.getCurrentVersion() # Version from gitea site self.currentVersion = self.version.getCurrentVersion() # Version from gitea site
@@ -42,7 +42,7 @@ class Update:
if self.buildFromSource: # Should the new version be build from source? if self.buildFromSource: # Should the new version be build from source?
self.build.fromSource(self.githubVersionTag) self.build.fromSource(self.githubVersionTag)
else: else:
self.download = self.download.Download(self.tmpDir, self.download = gitea_auto_update.lib.download.Download(self.tmpDir,
self.githubVersion, self.githubVersion,
self.githubVersionTag, self.githubVersionTag,
self.gtSystem, self.gtSystem,