| |
@@ -17,10 +17,13 @@
|
| |
# You should have received a copy of the GNU General Public License
|
| |
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
| |
|
| |
+ from __future__ import print_function
|
| |
+
|
| |
import sys
|
| |
import re
|
| |
import rpm
|
| |
|
| |
+
|
| |
def usage(file):
|
| |
file.write(("Usage: %s SPEC\n" +
|
| |
"Extract build dependencies from an RPM .spec file.\n") %
|
| |
@@ -32,4 +35,4 @@
|
| |
|
| |
spec = rpm.spec(sys.argv[1])
|
| |
for d in rpm.ds(spec.sourceHeader, 'requires'):
|
| |
- print d.DNEVR()[2:]
|
| |
+ print(d.DNEVR()[2:])
|
| |
rpm-spec-builddeps is usde for extracting build dependencies from spec
file to avoid duplication. But it was mostly used by python2 and
therefore we did not notice issues with python3 which has "print"
as a function and not as a statement.