aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-07-21 11:44:44 -0400
committerAnthony G. Basile <blueness@gentoo.org>2012-07-21 11:44:44 -0400
commit068916ffe880900f18e0c4147c2315ed05b1496e (patch)
treeeaaaf4fd3c817c6a48edb376defc9364708f0340
parentscripts/pypaxctl: frontend to pypax module (diff)
downloadelfix-068916ffe880900f18e0c4147c2315ed05b1496e.tar.gz
elfix-068916ffe880900f18e0c4147c2315ed05b1496e.tar.bz2
elfix-068916ffe880900f18e0c4147c2315ed05b1496e.zip
scripts/pypaxctl: remove debug code
-rwxr-xr-xscripts/pypaxctl7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/pypaxctl b/scripts/pypaxctl
index 266a571..46fee67 100755
--- a/scripts/pypaxctl
+++ b/scripts/pypaxctl
@@ -22,11 +22,9 @@ def main():
for o, a in opts:
if o == '-s':
- #pax.setflags(a, flags)
flags = a
do_set = 1
elif o == '-g':
- #( str_flags, bin_flags ) = pax.getflags(a)
do_get = 1
if( (do_set + do_get) != 1 ):
@@ -39,10 +37,11 @@ def main():
if( do_set == 1 ):
for binary in args:
- print('set %s on %s' % (flags,binary))
+ pax.setflags(binary, flags)
else:
for binary in args:
- print('get on %s' % binary)
+ ( str_flags, bin_flags ) = pax.getflags(binary)
+ print('%s' % str_flags)
if __name__ == '__main__':
main()