mirror of
https://github.com/xxh/xxh
synced 2024-11-23 04:13:04 +00:00
0.7.12
This commit is contained in:
parent
6071e3c285
commit
412152b417
2 changed files with 10 additions and 4 deletions
|
@ -204,6 +204,7 @@ easy as possible.
|
|||
|
||||
Use custom source to install your version of xxh packages:
|
||||
```shell script
|
||||
xxh +I https://github.com/xxh/xxh-shell-example # short url for github only, for other sources use examples below
|
||||
xxh +I xxh-shell-example+git+https://github.com/xxh/xxh-shell-example
|
||||
xxh +I xxh-shell-example+git+https://github.com/xxh/xxh-shell-example/tree/mybranch
|
||||
xxh +I xxh-shell-example+path+/home/user/my-xxh-dev/xxh-shell-example
|
||||
|
|
|
@ -7,7 +7,7 @@ from base64 import b64encode
|
|||
from signal import signal, SIGINT
|
||||
from .shell import *
|
||||
|
||||
XXH_VERSION = '0.7.11'
|
||||
XXH_VERSION = '0.7.12'
|
||||
|
||||
def sigint_handler(signal_received, frame):
|
||||
sys.exit(0)
|
||||
|
@ -386,6 +386,13 @@ class xxh:
|
|||
package_name = g.group(1)
|
||||
package_source_type = g.group(3)
|
||||
package_source = g.group(4)
|
||||
else:
|
||||
g = re.match(f'.*//github.com/(.+?)/({self.package_name_regex})(/|$)', package_name)
|
||||
if g:
|
||||
package_source = package_name
|
||||
package_name = g.group(2)
|
||||
package_source_type = 'git'
|
||||
|
||||
return (package_name, package_source_type, package_source)
|
||||
|
||||
def packages_install(self, packages, kernel=None, arch=None):
|
||||
|
@ -469,9 +476,7 @@ class xxh:
|
|||
removed = 0
|
||||
packages = list(set(packages))
|
||||
for package_name in packages:
|
||||
if '+' in package_name:
|
||||
package_name, package_source_type, package_source = self.package_parse_name(package_name)
|
||||
|
||||
package_name, package_source_type, package_source = self.package_parse_name(package_name)
|
||||
self.eprint(f'Remove {package_name}')
|
||||
subdir = self.package_subdir(package_name) or self.eeprint(f"Unknown package: {package_name}")
|
||||
package_dir = self.local_xxh_home / '.xxh' / subdir / package_name
|
||||
|
|
Loading…
Reference in a new issue