dnbert / prm

PRM Allows you to quickly build package repositories, inspired by Jordan Sissels' FPM
MIT License
250 stars 33 forks source link

Tried --directory without success #15

Closed kiranos closed 11 years ago

kiranos commented 11 years ago

Hi I tried to run a test with:

prm -t deb -p debian-repo -c main -r squeeze,wheezy -a amd64 -d dump/ -g

output looks ok:

Building Path: debian-repo/dists/squeeze/main/binary-amd64/
Generating Packages: squeeze : main : binary-amd64
Building Path: debian-repo/dists/wheezy/main/binary-amd64/
Generating Packages: wheezy : main : binary-amd64

but my dump/ dir is still holding the files it had before and they have not been copied anywhere. Is there something I'm missing? I would like them to be moved to the correct location in the repo.

dnbert commented 11 years ago

It looks like this might be a related to #16 ?

Can you show me the package names so I can verify?

kiranos commented 11 years ago

labb$prm -t deb -p debian-repo -c main -r squeeze -a amd64,i386 -g

Building Path: debian-repo/dists/squeeze/main/binary-amd64/ Generating Packages: squeeze : main : binary-amd64 Building Path: debian-repo/dists/squeeze/main/binary-i386/ Generating Packages: squeeze : main : binary-i386 labb$ tree -d

jenkins@nrpeplugins:~/labb$ tree . ├── debian-repo │   └── dists │   └── squeeze │   ├── main │   │   ├── binary-amd64 │   │   │   ├── Packages │   │   │   ├── Packages.gz │   │   │   └── Release │   │   └── binary-i386 │   │   ├── Packages │   │   ├── Packages.gz │   │   └── Release │   └── Release ├── upload │   ├── test-0.7.1-11+squeeze_amd64.deb │   └── test-0.7.1-11+squeeze_i386.deb

and now to test moving with:

labb$prm -t deb -p debian-repo -c main -r squeeze -a amd64,i386 -d upload/ -g

labb$ tree . ├── debian-repo │   └── dists │   └── squeeze │   ├── main │   │   ├── binary-amd64 │   │   │   ├── md5-results │   │   │   │   └── test-0.7.1-11+squeeze_amd64.deb │   │   │   ├── Packages │   │   │   ├── Packages.gz │   │   │   ├── Release │   │   │   └── test-0.7.1-11+squeeze_amd64.deb │   │   └── binary-i386 │   │   ├── md5-results │   │   │   └── test-0.7.1-11+squeeze_i386.deb │   │   ├── Packages │   │   ├── Packages.gz │   │   ├── Release │   │   └── test-0.7.1-11+squeeze_i386.deb │   └── Release ├── upload

It actually seems to work great! :) I didnt save my last testfiles but might have been without arch. How do you handle arch "all" ?

If a package is called test-0.7.1-11+squeeze_all.deb will it be copied to both amd64 and i386? (also include +wheezy_i386.deb as a match to move to respecitive would be great (about the other issue) ) I think you can close this if _all arch is ok aswell.

Thanks!

dnbert commented 11 years ago

I'm gonna close this one out, since it's related to #16 and #16 has the link to the commit that should solve this.