Comments (6)
Since I am not fool enough to throw away all the backups of what was required to rebuild the few packages that matter, there was no actual loss of data.
$ go get -u github.com/cassava/repoctl
$ cd $GOPATH/src/github.com/cassava/repoctl
$ git checkout devel
La branche 'devel' est paramétrée pour suivre la branche distante 'devel' depuis 'origin'.
Basculement sur la nouvelle branche 'devel'
$ go install ./cmd/repoctl
$ go install ./cmd/repols
$ cd $HOME/builds/test
$ ls -1
caffeine-ng-git-3.4.2.post37+g096f31b-1-any.pkg.tar.zst
openbox-gnome-20170530-1-any.pkg.tar.xz
pokerth-1.1.2-9-x86_64.pkg.tar.xz
repo
$ ls -l repo/
total 0
$ $GO_PATH/repoctl new config ./repo/myrepo.db.tar.gz
Writing new configuration file at /home/canalguada/.config/repoctl/config.toml ...
$ $GO_PATH/repoctl add openbox-gnome-20170530-1-any.pkg.tar.xz
copying and adding to repository: openbox-gnome-20170530-1-any.pkg.tar.xz
adding package to database: /home/canalguada/builds/test/repo/openbox-gnome-20170530-1-any.pkg.tar.xz
$ $GO_PATH/repoctl add pokerth-1.1.2-9-x86_64.pkg.tar.xz
copying and adding to repository: pokerth-1.1.2-9-x86_64.pkg.tar.xz
adding package to database: /home/canalguada/builds/test/repo/pokerth-1.1.2-9-x86_64.pkg.tar.xz
$ $GO_PATH/repoctl add caffeine-ng-git-3.4.2.post37+g096f31b-1-any.pkg.tar.zst
copying and adding to repository: caffeine-ng-git-3.4.2.post37+g096f31b-1-any.pkg.tar.zst
adding package to database: /home/canalguada/builds/test/repo/caffeine-ng-git-3.4.2.post37+g096f31b-1-any.pkg.tar.zst
$ $GO_PATH/repoctl add quodlibet-git-1:r10288.667aceb4c-1-any.pkg.tar.zst -m
moving and adding to repository: quodlibet-git-1:r10288.667aceb4c-1-any.pkg.tar.zst
adding package to database: /home/canalguada/builds/test/repo/quodlibet-git-1:r10288.667aceb4c-1-any.pkg.tar.zst
$ ls -1 repo/
caffeine-ng-git-3.4.2.post37+g096f31b-1-any.pkg.tar.zst
myrepo.db
myrepo.db.tar.gz
myrepo.db.tar.gz.old
myrepo.files
myrepo.files.tar.gz
myrepo.files.tar.gz.old
openbox-gnome-20170530-1-any.pkg.tar.xz
pokerth-1.1.2-9-x86_64.pkg.tar.xz
quodlibet-git-1:r10288.667aceb4c-1-any.pkg.tar.zst
$ $GO_PATH/repols files
/home/canalguada/builds/test/repo/caffeine-ng-git-3.4.2.post37+g096f31b-1-any.pkg.tar.zst
/home/canalguada/builds/test/repo/openbox-gnome-20170530-1-any.pkg.tar.xz
/home/canalguada/builds/test/repo/pokerth-1.1.2-9-x86_64.pkg.tar.xz
/home/canalguada/builds/test/repo/quodlibet-git-1:r10288.667aceb4c-1-any.pkg.tar.zst
It's a sunny day… So didn't check much further. Looks pretty good.
from repoctl.
Just add the console log, if it can help.
$ repoctl add caffeine-ng-git-3.4.2.post37+g096f31b-1-any.pkg.tar.zst -m
moving and adding to repository: caffeine-ng-git-3.4.2.post37+g096f31b-1-any.pkg.tar.zst
adding package to database: /home/canalguada/builds/repo/caffeine-ng-git-3.4.2.post37+g096f31b-1-any.pkg.tar.zst
error: unknown file format.
deleting: /home/canalguada/builds/repo/adementary-gtk-theme-git-1:248.7cb84a7-1-any.pkg.tar.xz
deleting: /home/canalguada/builds/repo/adwaita-qt4-1.0-1-x86_64.pkg.tar.xz
deleting: /home/canalguada/builds/repo/alpm_octopi_utils-1.0.1-1-x86_64.pkg.tar.xz
deleting: /home/canalguada/builds/repo/appmenu-gtk-module-git-0.7.3.r1.g8e8b2d0-1-x86_64.pkg.tar.xz
[many more packages files…]
from repoctl.
Wow, that's not good! Thanks for the report! I'll look into it.
from repoctl.
I also sincerely apologize for your loss of data! :-(
I implemented some support for Zst compression on the devel
branch.
Would you care to test it? If that works out I'll then release v0.19.
from repoctl.
Version 0.19 from -devel
works with ZST-compressed file for me too.
from repoctl.
I can confirm that grabbing the latest commit from -devel works fine for me also.
from repoctl.
Related Issues (20)
- magic number mismatch HOT 3
- 'repoctl update' picks the wrong file if version is the same HOT 2
- No recursive download with databases other than in gzip HOT 14
- Make configuration optional for certain commands
- Recursive download doesn't handle package names that are provided HOT 1
- Optimize list speed HOT 1
- Improve landing page
- Wrong package version detection is leading to catastrophic action. (Current devel) HOT 6
- Repoctl is backing-up files without any good-reason HOT 39
- Support parallel execution of repoctl HOT 1
- Sign package/database automatically on adding
- Maximum file size exceeded: wrong file size in database HOT 2
- repoctl remove --backup=false broken HOT 2
- Error on removing package with several versions. HOT 2
- Dependency resolution doesn't take into account the 'Provides' HOT 2
- Repoctl down "pkgbase" errors if the pkgbase is not available in pkgname=() HOT 7
- Repoctl deletes packages on 'unknown' entry in .PKGINFO HOT 7
- repoctl down does crash HOT 4
- New Pacman 6.1 causing repoctl to throw error HOT 18
- The package sources is not loading - gzip: invalid header HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from repoctl.