Comments (10)
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.
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.
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.
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.
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.
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.
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.
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.
Alright, since 3d3de22 the user is warned now on every run if an error occurred.
from repoctl.
@cassava the repoctl-git AUR package was orphaned
from repoctl.
Related Issues (20)
- Do not use Zstd archive format with `repoctl add` after updating pacman to 5.2.0 version HOT 6
- Enhancing building speed by changing compression type HOT 2
- 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
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.