Giter Club home page Giter Club logo

Comments (10)

cassava avatar cassava commented on September 26, 2024

Hey @AladW, thanks for this report also,

Quick question: is this just about the path, or is it about the actual format of the database? The database needs to be tarred at minimum, because it's a directory tree internally.
The repo-add command creates a symlink from custom.db to custom.db.tar.gz, correct?

from repoctl.

AladW avatar AladW commented on September 26, 2024

Good point, it would indeed be about the path; as a comparison, database
files in /var/lib/pacman/sync/foo.db don't have a .tar extension either.

repo-add does create a symbolic link:

% stat custom.db
File: 'custom.db' -> 'custom.db.tar'
Size: 13 Blocks: 0 IO Block: 4096 symbolic link
Device: 802h/2050d Inode: 5382121 Links:

Ben Morgan wrote:

Hey @AladW https://github.com/AladW, thanks for this report also,

Quick question: is this just about the path, or is it about the actual
format of the database? The database needs to be tarred at minimum,
because it's a directory tree internally.
The |repo-add| command creates a symlink from |custom.db| to
|custom.db.tar.gz|, correct?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#24 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AFQJJOTssa7woBNi5IaY6ixvljJ4cg7-ks5qKsaFgaJpZM4Iziky.

from repoctl.

cassava avatar cassava commented on September 26, 2024

Hi @AladW, can you have a look at commit e056c64 and see if this solves your problem?

My experience was that repo-add wants to have the whole database, i.e. custom.db.tar.gz, and so if you supply something else it won't work. But maybe I am mistaken.

from repoctl.

AladW avatar AladW commented on September 26, 2024

The repoctl-git AUR package is broken, so I'm having some trouble building repoctl to test this; I ran:

mkdir ~/go
export GOPATH=~/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:~/$GOBIN
go get github.com/cassava/repoctl
cd ~/src/github.com/cassava/repoctl
git checkout devel
go build
go install

But for some reason the ~/go/bin directory stays empty (note: the master branch with go get works fine)

from repoctl.

cassava avatar cassava commented on September 26, 2024

I guess it's kinda confusing :-)

You have a typo at cd ~/src/github.com/cassava/repoctl (missing the go directory).
You have to do go install in cmd/repoctl, because that's where the binary is. You can also do go install ./cmd/... to install all commands, which would be repoctl and repols.

from repoctl.

cassava avatar cassava commented on September 26, 2024

On a sidenote: I don't control the repoctl-git AUR package sadly, so I can't fix it. Personally, I don't think the package is necessary.

from repoctl.

cassava avatar cassava commented on September 26, 2024

Ok, the latest repoctl requires the repository database to be specified with some extension that signifies how it is compressed (if at all). Thus .tar and .tar.gz and .tar.xz should all work. If this is omitted, and only mine.db is given, for example, then it will fail.

from repoctl.

AladW avatar AladW commented on September 26, 2024

With your corrections it installed, thanks.

When creating a new config with an extension:

repoctl new config /var/cache/pacman/custom/custom.db.tar
Writing new configuration file at /home/archie/.config/repoctl/config.toml ...

It works as expected:
https://paste.xinu.at/TA8/

Doing the same without extension gives errors, also as expected:
https://paste.xinu.at/ROhW/
https://paste.xinu.at/sFQz/

Perhaps it would be clearer if the user is warned right away, if he created a config file without one of the supported extensions.

from repoctl.

cassava avatar cassava commented on September 26, 2024

Alright, since 3d3de22 the user is warned now on every run if an error occurred.

from repoctl.

AladW avatar AladW commented on September 26, 2024

@cassava the repoctl-git AUR package was orphaned

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.