~ubuntu-branches/ubuntu/lucid/isomd5sum/lucid

« back to all changes in this revision

Viewing changes to pyisomd5sum.c

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Finnie
  • Date: 2008-02-12 20:50:55 UTC
  • mfrom: (1.1.3 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080212205055-ok7t538if9lctyws
Tags: 1:1.0.4-1
* New upstream version.
* Epoch added, upstream re-worked into standalone package
* debian/control: new homepage/git
* debian/control: clarified description
* Removed sgml documentation (manpages moved upstream)
* Added watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2001-2007 Red Hat, Inc.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License
 
6
 * as published by the Free Software Foundation; either version 2
 
7
 * of the License, or (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
17
 */
 
18
 
1
19
#include <Python.h>
2
20
#include <stdio.h>
3
21
 
21
39
    if (!PyArg_ParseTuple(args, "s", &isofile))
22
40
        return NULL;
23
41
 
24
 
    rc = mediaCheckFile(isofile, 1);
 
42
    rc = mediaCheckFile(isofile, NULL, NULL);
25
43
 
26
44
    return Py_BuildValue("i", rc);
27
45
}