2 Commits
3.2.5 ... 3.2.6

Author SHA1 Message Date
06620a4dba Fix bug when exclude pattern is None 2023-05-31 19:07:50 +02:00
0dd7b887f7 Update PKGBUILD to use release version 2023-05-28 11:07:03 +02:00
3 changed files with 20 additions and 25 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.idea/ .idea/
__pycache__/
test/ test/

View File

@ -3,14 +3,15 @@
# Maintainer: Daniele Fucini <dfucini@gmail.com> # Maintainer: Daniele Fucini <dfucini@gmail.com>
pkgname=simple_backup pkgname=simple_backup
pkgver=3.2.3.r1.ga42ade4
pkgrel=1
pkgdesc='Simple backup script that uses rsync to copy files' pkgdesc='Simple backup script that uses rsync to copy files'
pkgver=3.2.5
pkgrel=3
epoch=1
url="https://github.com/Fuxino/${pkgname}"
install=simple_backup.install
arch=('any') arch=('any')
url="https://github.com/Fuxino/simple_backup.git"
license=('GPL3') license=('GPL3')
makedepends=('git' makedepends=('python-setuptools'
'python-setuptools'
'python-build' 'python-build'
'python-installer' 'python-installer'
'python-wheel') 'python-wheel')
@ -19,30 +20,22 @@ depends=('python'
'python-dotenv') 'python-dotenv')
optdepends=('python-systemd: use systemd log' optdepends=('python-systemd: use systemd log'
'python-dbus: for desktop notifications') 'python-dbus: for desktop notifications')
install=${pkgname}.install conflicts=('simple_backup-git')
source=(git+https://github.com/Fuxino/${pkgname}.git) source=(${pkgname}-${pkgver}.tar.gz::https://github.com/Fuxino/${pkgname}/archive/${pkgver}.tar.gz
sha256sums=('SKIP') https://github.com/Fuxino/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz.sig)
validpgpkeys=('7E12BC1FF3B6EDB2CD8053EB981A2B2A3BBF5514')
pkgver() sha256sums=('fd418a9c641d604c64bd0a8487b5ab431ff71f192d6021e55b194085951cb40d'
{ 'SKIP')
cd ${pkgname}
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare()
{
git -C ${srcdir}/${pkgname} clean -dfx
}
build() build()
{ {
cd ${srcdir}/${pkgname} cd ${srcdir}/${pkgname}-${pkgver}
python -m build --wheel --no-isolation python -m build --wheel --no-isolation
} }
package() package()
{ {
cd ${srcdir}/${pkgname} cd ${srcdir}/${pkgname}-${pkgver}
python -m installer --destdir=${pkgdir} dist/*.whl python -m installer --destdir=${pkgdir} dist/*.whl
install -Dm644 ${srcdir}/${pkgname}/${pkgname}.conf ${pkgdir}/etc/${pkgname}/${pkgname}.conf install -Dm644 ${srcdir}/${pkgname}-${pkgver}/${pkgname}.conf ${pkgdir}/etc/${pkgname}/${pkgname}.conf
} }

View File

@ -185,6 +185,7 @@ class Backup:
fp.write('\n') fp.write('\n')
with open(self._exclude_path, 'w') as fp: with open(self._exclude_path, 'w') as fp:
if self.exclude is not None:
for e in self.exclude: for e in self.exclude:
fp.write(e) fp.write(e)
fp.write('\n') fp.write('\n')