------------------------------------------------------------
revno: 2445
committer: Anton Gladky <[email protected]>
branch nick: trunk
timestamp: Thu 2010-09-23 20:57:26 +0200
message:
1. debian-prep now can accept RELEASE file without version number to create
yade-bzr version
modified:
scripts/debian-prep
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to
https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'scripts/debian-prep'
--- scripts/debian-prep 2010-06-13 21:28:46 +0000
+++ scripts/debian-prep 2010-09-23 18:57:26 +0000
@@ -7,10 +7,14 @@
UPDATE=(file('UPDATE').readline().strip() if os.path.exists('UPDATE') else '')
print 'UPDATE is %s'%UPDATE
SNAPSHOT=''
- PRIORITY=int(10000*float(re.sub('[^0-9.]','',VERSION)))
- if re.match('^.*beta',VERSION): PRIORITY-=100
- if re.match('^.*rc[0-9]$',VERSION): PRIORITY-=100
- if UPDATE: PRIORITY+=int(re.sub('[^0-9]','',UPDATE))
+ PRIORITY = 0
+ if ((re.sub('[^0-9.]','',VERSION))==''):
+ PRIORITY = 200
+ else:
+ PRIORITY=int(10000*float(re.sub('[^0-9.]','',VERSION)))
+ if re.match('^.*beta',VERSION): PRIORITY-=100
+ if re.match('^.*rc[0-9]$',VERSION): PRIORITY-=100
+ if UPDATE: PRIORITY+=int(re.sub('[^0-9]','',UPDATE))
elif os.path.exists('.bzr'):
VERSION='bzr'+os.popen("LC_ALL=C bzr revno 2>/dev/null").readlines()[0][:-1]
SNAPSHOT='-snapshot'
_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help : https://help.launchpad.net/ListHelp