Permalink
Browse files

Fixed bug with checking --data option in burn-only mode

  • Loading branch information...
Marcin Karpezo
Marcin Karpezo committed Sep 28, 2009
1 parent b1627d4 commit 22588c3d8a19f4463d96b4dbfdef505dfe929f34
Showing with 7 additions and 8 deletions.
  1. +7 −8 simpleburner.py
View
@@ -26,8 +26,6 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
-
-
import os
import sys
import subprocess
@@ -50,12 +48,13 @@ def programcheck():
print >>sys.stderr, "Not found: Please install cdrkit or cdrtools!"
sys.exit(1)
def optcheck():
- if not datadir:
- print >>sys.stderr, "Failed! You must deine --data option."
- sys.exit(1)
- elif not os.path.exists(datadir):
- print >>sys.stderr, "Failed! Data directory does not exist!"
- sys.exit(1)
+ if not burn:
+ if not datadir:
+ print >>sys.stderr, "Failed! You must deine --data option."
+ sys.exit(1)
+ elif not os.path.exists(datadir):
+ print >>sys.stderr, "Failed! Data directory does not exist!"
+ sys.exit(1)
def makeiso():
print "Making iso image..."
command = "%s -U -quiet -o %s %s" % (isomaker, isoname, datadir)

0 comments on commit 22588c3

Please sign in to comment.