LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-20-2009, 07:18 AM   #1
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
"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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Adding a "Subscribe" button next to "Reply"? pnellesen LQ Suggestions & Feedback 2 06-21-2005 09:12 PM
"adduser" not adding users to default group "users" PunkPT Slackware 2 09-23-2004 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration