debops / ansible-reprepro

Create local APT repository with reprepro
GNU General Public License v3.0
12 stars 5 forks source link

Cannot find definition of upgrade-rule 'updates/debian-jessie' for distribution 'kui'! #12

Open seacoastboy opened 7 years ago

seacoastboy commented 7 years ago

sudo su reprepro cd ~ reprepro update

Cannot find definition of upgrade-rule 'updates/debian-jessie' for distribution 'kui'! There have been errors!

cat conf/distributions/debian_kui.conf

Update: updates/debian-jessie` Uploaders: uploaders/deepin-kui Pull: kui_deepin_from_staging Tracking: keep Description: Deepin production repository for Debian Jessie Origin: Deepin Label: jessie-deepin Architectures: source amd64 Suite: stable Codename: kui Components: main UDebComponents: main SignWith: default DebIndices: Packages Release . .gz .bz2 DscIndices: Sources Release .gz .bz2 Log: packages.debian-kui.log --type=dsc email-changes.sh

cat conf/updates/debian-jessie.conf

Name: debian-jessie Method: http://mirrors.163.com/debian Suite: jessie Fallback: http://mirrors.ustc.edu.cn/debian VerifyRelease: 2B90D010 Components: main UDebComponents: main Architectures: amd64 source GetInRelease: no`

drybjed commented 7 years ago

Did you create your own distribution or release? I suppose that the role needs to be updated at some point, bugs are starting to show up.

seacoastboy commented 7 years ago

The update file can only be a file, not a directory

drybjed commented 7 years ago

@seacoastboy Thanks for investigating the issue! That explains a lot. I guess that the configuration could be assembled by Ansible in this case.

seacoastboy commented 7 years ago

This is a bug? Or is a use error?

drybjed commented 7 years ago

Hard to tell without knowing if you changed the default configuration of the role or not. Did you set some debops.reprepro-related variables in the inventory?

seacoastboy commented 7 years ago

man reprepro, The update file can only be a file, not a directory.

drybjed commented 7 years ago

OK, so the role needs to be remodeled to not have some configuration in conf.d/ directories then.