- if files[file]["type"] == "dsc" or files[file]["type"] == "deb":
- filename = os.path.join(Cnf["Dir::QueueAcceptedDir"], file);
- self.projectB.query("INSERT INTO unstable_accepted (filename) VALUES ('%s')" % (filename));
- # If the .orig.tar.gz is in the pool, create a symlink (if
- # one doesn't already exist)
+ src = os.path.join(Cnf["Dir::QueueAcceptedDir"], file);
+ dest = os.path.join(Cnf["Dir::AcceptedAutoBuild"], file);
+ # Create a symlink to it
+ os.symlink(src, dest);
+ # Add it to the list of packages for later processing by apt-ftparchive
+ self.projectB.query("INSERT INTO unstable_accepted (filename, in_accepted) VALUES ('%s', 't')" % (dest));
+ # If the .orig.tar.gz is in the pool, create a symlink to
+ # it (if one doesn't already exist)