Giter Club home page Giter Club logo

Comments (6)

canalguada avatar canalguada commented on June 24, 2024 1

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.

canalguada avatar canalguada commented on June 24, 2024

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.

cassava avatar cassava commented on June 24, 2024

Wow, that's not good! Thanks for the report! I'll look into it.

from repoctl.

cassava avatar cassava commented on June 24, 2024

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.

alanorth avatar alanorth commented on June 24, 2024

Version 0.19 from -devel works with ZST-compressed file for me too.

from repoctl.

Vash63 avatar Vash63 commented on June 24, 2024

I can confirm that grabbing the latest commit from -devel works fine for me also.

from repoctl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.