"dch -i" adding ubuntu1, ubuntu2 etc.
Hi
Some years ago, a co-worker made a system where we make .deb files for internal use. It was basically a user account on an Ubuntu 6.06 server, where I first typed in a very long password at login (which I have written in a book). I could then run a script that makes a deb file with many PHP files in a certain directory. The only thing the script asks for is some text in the changelog.
I didn't set it up, but I've been using this a number of times for small bugfixes. I'm sorry, but I know next to nothing about making deb packages. He wrote a README that explains how to change dependencies and how to bump version numbers. But that's it.
Then the server died. That old server didn't really do anything except this, so I decided to move it to a newer server running Ubuntu 8.04. I got all the files of that user account from a backup, created the account again, and moved all the files back. I could not get in contact with the co-worker, since he has quit since then.
I had some difficulties getting the script to run. First it was the system with the password, and then I had to install a lot of packages. But now I finally got it working.
The only problem is the version numbers. In the script, there is a command "dch -i" which increases the version number. Before it used to be like 5.0.31 increased to 5.0.32 and so on.
But since I moved it, it is adding "ubuntuX" to the version number instead. The last version on the old server was 5.0.32, and instead of going to 5.0.33 it went 5.0.32ubuntu1. I tried to a package again and it became 5.0.32ubuntu2.
Anyone know about dch and how I can prevent it from adding ubuntu to the version numbers?
Best regards
Guttorm.
Edit:
I found a way - instead of using "dch -i", I read the old version number, increment it by some bash scripting, and then use "dch -v $newversion" instead. There was probably some config file I should have copied from the backup, but I never figured out which.
Last edited by Guttorm; 04-21-2009 at 04:17 AM.
|