Skip to content

Commit

Permalink
Added build 495 to the updates list, changed the changelog to be stat…
Browse files Browse the repository at this point in the history
…ic and simply point to the wiki
  • Loading branch information
midgetspy committed Apr 29, 2012
1 parent 2738387 commit 4cb75ce
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 41 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ autoProcessTV/build/*
SickBeard-win32-*.zip
*.exe
gc.ini
CHANGELOG.txt
*.tmp
*.wpr
*.project
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See https://github.com/midgetspy/Sick-Beard/wiki/ChangeLog
40 changes: 0 additions & 40 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from distutils.core import setup
import py2exe, sys, os, shutil, datetime, zipfile, subprocess, fnmatch
import googlecode_upload
from lib.pygithub import github

# mostly stolen from the SABnzbd package.py file
name = 'SickBeard'
Expand Down Expand Up @@ -164,45 +163,6 @@ def allFiles(dir):
console = ['updater.py'],
)

if 'test' in oldArgs:
print "Ignoring changelog for test build"
else:
# start building the CHANGELOG.txt
print 'Creating changelog'
gh = github.GitHub()

# read the old changelog and find the last commit from that build
lastCommit = ""
try:
cl = open("CHANGELOG.txt", "r")
lastCommit = cl.readlines()[0].strip()
cl.close()
except:
print "I guess there's no changelog"

newestCommit = ""
changeString = ""

# cycle through all the git commits and save their commit messages
for curCommit in gh.commits.forBranch('midgetspy', 'Sick-Beard'):
if curCommit.id == lastCommit:
break

if newestCommit == "":
newestCommit = curCommit.id

changeString += curCommit.message + "\n\n"

# if we didn't find any changes don't make a changelog file
if newestCommit != "":
newChangelog = open("CHANGELOG.txt", "w")
newChangelog.write(newestCommit+"\n\n")
newChangelog.write("Changelog for build "+str(currentBuildNumber)+"\n\n")
newChangelog.write(changeString)
newChangelog.close()
else:
print "No changes found, keeping old changelog"

# put the changelog in the compile dir
if os.path.exists("CHANGELOG.txt"):
shutil.copy('CHANGELOG.txt', 'dist/')
Expand Down
1 change: 1 addition & 0 deletions updates.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
http://sickbeard.googlecode.com/files/SickBeard-win32-alpha-build495.zip
http://sickbeard.googlecode.com/files/SickBeard-win32-alpha-build494.zip
http://sickbeard.googlecode.com/files/SickBeard-win32-alpha-build493.zip
http://sickbeard.googlecode.com/files/SickBeard-win32-alpha-build492.zip
Expand Down

0 comments on commit 4cb75ce

Please sign in to comment.