def move_noarch(f, arch, rpmfile, dstpkg):
if dstpkg.noarch_arch.has_key(rpmfile):
- os.system("LC_ALL=C rpm -qlp %s | LC_ALL=C sort > %s/files.new" %
+ os.system("rpm -qlp %s | LC_ALL=C sort > %s/files.new" %
(incoming_dir + arch + '/' + rpmfile, tmpdir))
- os.system("LC_ALL=C rpm -qRp %s | LC_ALL=C sort | uniq > %s/reqs.new" %
+ os.system("rpm -qRp %s | LC_ALL=C sort | LC_ALL=C uniq > %s/reqs.new" %
(incoming_dir + arch + '/' + rpmfile, tmpdir))
files_differ = False
rm(incoming_dir + arch + '/' + rpmfile)
else:
- os.system("LC_ALL=C rpm -qlp %s > %s/%s.filelist" %
+ os.system("LC_ALL=C rpm -qlp %s | LC_ALL=C sort > %s/%s.filelist" %
(incoming_dir + arch + '/' + rpmfile, noarchcachedir, rpmfile))
- os.system("LC_ALL=C rpm -qRp %s |sort|uniq > %s/%s.reqlist" %
+ os.system("rpm -qRp %s | LC_ALL=C sort | LC_ALL=C uniq > %s/%s.reqlist" %
(incoming_dir + arch + '/' + rpmfile, noarchcachedir, rpmfile))
f.write("file:noarch:%s\ninfo:noarch_arch:%s:%s\n" % (rpmfile, rpmfile, arch))
mv(incoming_dir + arch + '/' + rpmfile, default_to + 'noarch/RPMS')