Пример #1
0
      dummy, sign_author, dummy = line.split('"')
rc=pcheck.close()
  
if not sign_author:
  print "Unable to determine key owner"
  sys.exit(2)

if not change_author:
  print "Unable to determine change author"
  sys.exit(2)

if rc != None:
  print "Failed security check"

print "Building", release ,package
file_list = dpkg.get_files_list(package)
pck_files = list()
dsc_file = None
orig_file = None
for file in file_list:
  if file[4].find('.dsc') != -1: dsc_file = file[4]
  if file[4].find('orig.tar.gz') != -1: orig_file = file[4]
  pck_files.append(file[4])
if not dsc_file:
  print "ERROR: Package without a .dsc file"
  sys.exit(2)
if not orig_file:
  orig_file = dpkg.getOrigTarGzName(package)
  if not os.path.exists(prebuilddir+"/"+release+"/"+orig_file):
    print "ERROR: Package without a .orig.tar.gz file"
    sys.exit(2)
Пример #2
0
  print "You must provide a .dsc file"
  sys.exit(2)

if not os.path.exists(package):
  print "File "+package+" not found"
  sys.exit(3)

#base_dir = os.path.dirname(package) or '.'
package_name = os.path.basename(package)
package_name_orig = package_name
package_name = package_name.replace(".dsc", "")

file_list = list()

for file in glob.glob(package_name+'_*.changes'):
  for file2 in dpkg.get_files_list(file):
    file_list.append(file2[4])
  file_list.append(file)
  file_list.append(dpkg.getOrigTarGzName(file))

file_list = uniq(file_list)
print "Debian source control",package_name_orig,"contains",len(file_list),"file(s)"

#print package_name+" - Moving "+`len(file_list)`+" file(s)"
for file in file_list:
  if not os.path.exists(file):
	print "Unable to find",file
        sys.exit(4)
  print file
print "Moving files to", ready_dir+release
Пример #3
0
        dummy, sign_author, dummy = line.split('"')
rc = pcheck.close()

if not sign_author:
    print "Unable to determine key owner"
    sys.exit(2)

if not change_author:
    print "Unable to determine change author"
    sys.exit(2)

if rc != None:
    print "Failed security check"

print "Building", release, package
file_list = dpkg.get_files_list(package)
pck_files = list()
dsc_file = None
orig_file = None
for file in file_list:
    if file[4].find('.dsc') != -1: dsc_file = file[4]
    if file[4].find('orig.tar.gz') != -1: orig_file = file[4]
    pck_files.append(file[4])
if not dsc_file:
    print "ERROR: Package without a .dsc file"
    sys.exit(2)
if not orig_file:
    orig_file = dpkg.getOrigTarGzName(package)
    if not os.path.exists(prebuilddir + "/" + release + "/" + orig_file):
        print "ERROR: Package without a .orig.tar.gz file"
        sys.exit(2)
Пример #4
0
    print "You must provide a .dsc file"
    sys.exit(2)

if not os.path.exists(package):
    print "File " + package + " not found"
    sys.exit(3)

#base_dir = os.path.dirname(package) or '.'
package_name = os.path.basename(package)
package_name_orig = package_name
package_name = package_name.replace(".dsc", "")

file_list = list()

for file in glob.glob(package_name + '_*.changes'):
    for file2 in dpkg.get_files_list(file):
        file_list.append(file2[4])
    file_list.append(file)
    file_list.append(dpkg.getOrigTarGzName(file))

file_list = uniq(file_list)
print "Debian source control", package_name_orig, "contains", len(
    file_list), "file(s)"

#print package_name+" - Moving "+`len(file_list)`+" file(s)"
for file in file_list:
    if not os.path.exists(file):
        print "Unable to find", file
        sys.exit(4)
    print file
print "Moving files to", ready_dir + release