mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-28 17:27:17 +00:00
Compare commits
No commits in common. "a6c8d640530c363ca06ca4cc5c7255f329a15972" and "900907cdaa7b6a7603552882b25d9279ada6081a" have entirely different histories.
a6c8d64053
...
900907cdaa
File diff suppressed because it is too large
Load Diff
Before Width: | Height: | Size: 509 KiB After Width: | Height: | Size: 504 KiB |
@ -1,7 +1,7 @@
|
|||||||
# Maintainer: Evgeniy Alekseev
|
# Maintainer: Evgeniy Alekseev
|
||||||
|
|
||||||
pkgname='ahriman'
|
pkgname='ahriman'
|
||||||
pkgver=2.0.0rc6
|
pkgver=2.0.0rc5
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="ArcH Linux ReposItory MANager"
|
pkgdesc="ArcH Linux ReposItory MANager"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
@ -38,7 +38,7 @@ build() {
|
|||||||
package() {
|
package() {
|
||||||
cd "$pkgname"
|
cd "$pkgname"
|
||||||
|
|
||||||
python -m installer --destdir="$pkgdir" "dist/$pkgname-$pkgver-py3-none-any.whl"
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
|
|
||||||
# python-installer actually thinks that you cannot just copy files to root
|
# python-installer actually thinks that you cannot just copy files to root
|
||||||
# thus we need to copy them manually
|
# thus we need to copy them manually
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{#simplified version of full report#}
|
{#simplified version of full report#}
|
||||||
<b>{{ repository }} update</b>
|
<b>{{ repository }} update</b>
|
||||||
{% for package in packages %}
|
{% for package in packages %}
|
||||||
<a href="{{ link_path }}/{{ package.filename }}">{{ package.name }}</a> {{ package.version }}{% endfor %}
|
<a href="{{ link_path }}/{{ package.filename }}">{{ package.name }}</a> {{ package.version }} at {{ package.build_date }}
|
||||||
|
{% endfor %}
|
@ -101,7 +101,7 @@ class JinjaTemplate:
|
|||||||
"name": package,
|
"name": package,
|
||||||
"url": properties.url or "",
|
"url": properties.url or "",
|
||||||
"version": base.version
|
"version": base.version
|
||||||
} for base in result.success for package, properties in base.packages.items()
|
} for base in result.updated for package, properties in base.packages.items()
|
||||||
]
|
]
|
||||||
comparator: Callable[[Dict[str, str]], str] = lambda item: item["filename"]
|
comparator: Callable[[Dict[str, str]], str] = lambda item: item["filename"]
|
||||||
|
|
||||||
|
@ -19,11 +19,14 @@
|
|||||||
#
|
#
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import shutil
|
||||||
|
import tempfile
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
from typing import Iterable, List, Set, Type
|
from typing import Iterable, List, Set, Type
|
||||||
|
|
||||||
from ahriman.core.build_tools.sources import Sources
|
from ahriman.core.build_tools.sources import Sources
|
||||||
from ahriman.core.database.sqlite import SQLite
|
from ahriman.core.database.sqlite import SQLite
|
||||||
from ahriman.core.util import tmpdir
|
|
||||||
from ahriman.models.package import Package
|
from ahriman.models.package import Package
|
||||||
|
|
||||||
|
|
||||||
@ -58,9 +61,12 @@ class Leaf:
|
|||||||
:param database: database instance
|
:param database: database instance
|
||||||
:return: loaded class
|
:return: loaded class
|
||||||
"""
|
"""
|
||||||
with tmpdir() as clone_dir:
|
clone_dir = Path(tempfile.mkdtemp())
|
||||||
|
try:
|
||||||
Sources.load(clone_dir, package.git_url, database.patches_get(package.base))
|
Sources.load(clone_dir, package.git_url, database.patches_get(package.base))
|
||||||
dependencies = Package.dependencies(clone_dir)
|
dependencies = Package.dependencies(clone_dir)
|
||||||
|
finally:
|
||||||
|
shutil.rmtree(clone_dir, ignore_errors=True)
|
||||||
return cls(package, dependencies)
|
return cls(package, dependencies)
|
||||||
|
|
||||||
def is_root(self, packages: Iterable[Leaf]) -> bool:
|
def is_root(self, packages: Iterable[Leaf]) -> bool:
|
||||||
|
@ -62,6 +62,13 @@ class Result:
|
|||||||
"""
|
"""
|
||||||
return list(self._success.values())
|
return list(self._success.values())
|
||||||
|
|
||||||
|
@property
|
||||||
|
def updated(self) -> List[Package]:
|
||||||
|
"""
|
||||||
|
:return: list of updated packages inclding both success and failed
|
||||||
|
"""
|
||||||
|
return self.success + self.failed
|
||||||
|
|
||||||
def add_failed(self, package: Package) -> None:
|
def add_failed(self, package: Package) -> None:
|
||||||
"""
|
"""
|
||||||
add new package to failed built
|
add new package to failed built
|
||||||
|
@ -17,4 +17,4 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
__version__ = "2.0.0rc6"
|
__version__ = "2.0.0rc5"
|
||||||
|
Loading…
Reference in New Issue
Block a user