Changeset View
Changeset View
Standalone View
Standalone View
portage/dev-util/git/git.py
1 | # -*- coding: utf-8 -*- | 1 | # -*- coding: utf-8 -*- | ||
---|---|---|---|---|---|
2 | import subprocess | 2 | import subprocess | ||
3 | import tempfile | 3 | import tempfile | ||
4 | 4 | | |||
5 | from CraftDebug import craftDebug | 5 | from CraftDebug import craftDebug | ||
6 | import info | 6 | import info | ||
7 | import utils | 7 | import utils | ||
8 | from Package.MaybeVirtualPackageBase import * | 8 | from Package.MaybeVirtualPackageBase import * | ||
9 | from Package.VirtualPackageBase import * | 9 | from Package.VirtualPackageBase import * | ||
10 | 10 | | |||
11 | 11 | | |||
12 | class subinfo(info.infoclass): | 12 | class subinfo(info.infoclass): | ||
13 | def setTargets( self ): | 13 | def setTargets( self ): | ||
14 | ver = "2.11.0" | 14 | ver = "2.11.0" | ||
15 | arch = 32 | 15 | arch = 32 | ||
16 | if compiler.isX64(): | 16 | if craftCompiler.isX64(): | ||
17 | arch = 64 | 17 | arch = 64 | ||
18 | 18 | | |||
19 | self.targets[ver] ="https://github.com/git-for-windows/git/releases/download/v%s.windows.1/PortableGit-%s-%s-bit.7z.exe" % (ver, ver, arch) | 19 | self.targets[ver] ="https://github.com/git-for-windows/git/releases/download/v%s.windows.1/PortableGit-%s-%s-bit.7z.exe" % (ver, ver, arch) | ||
20 | self.archiveNames[ver] = "PortableGit-%s-%s-bit.7z" % (ver, arch) | 20 | self.archiveNames[ver] = "PortableGit-%s-%s-bit.7z" % (ver, arch) | ||
21 | self.targetInstallPath[ ver ] = os.path.join("dev-utils","git") | 21 | self.targetInstallPath[ ver ] = os.path.join("dev-utils","git") | ||
22 | self.defaultTarget = ver | 22 | self.defaultTarget = ver | ||
23 | 23 | | |||
24 | def setDependencies(self): | 24 | def setDependencies(self): | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |